// ******************************************************************************
// Copyright     :  Copyright (C) 2020, Hisilicon Technologies Co. Ltd.
// File name     :  sm_c_union_define.h
// Project line  :  IT Product Line
// Department    :  ICT Processor Chipset Development Department
// Version       :  V100
// Date          :
// Description   :  The description of xxx project
// Others        :  Generated automatically by nManager V5.1
// file
// ******************************************************************************

#ifndef SM_C_UNION_DEFINE_H
#define SM_C_UNION_DEFINE_H

/* Define the union csr_smrt_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smrt_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smrt_version_u;

/* Define the union csr_smxr_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_chk_en : 1;           /* [0] */
        u32 smxr_cnt_sel : 2;         /* [2:1] */
        u32 rsv_0 : 2;                /* [4:3] */
        u32 tifoe_pi_copy_enb : 1;    /* [5] */
        u32 roce_pi_copy_enb : 1;     /* [6] */
        u32 iwarp_pi_copy_enb : 1;    /* [7] */
        u32 tp_ram_tmod : 8;          /* [15:8] */
        u32 mem_ret1n : 1;            /* [16] */
        u32 rsv_1 : 1;                /* [17] */
        u32 tifoe_pftch_ctl : 2;      /* [19:18] */
        u32 tifoe_pftch_wqe_num : 2;  /* [21:20] */
        u32 rp_sm_uncrt_err_clr : 1;  /* [22] */
        u32 rp_sm_uncrt_err_mask : 7; /* [29:23] */
        u32 rp_crt_err_inj_req : 1;   /* [30] */
        u32 rp_uncrt_err_inj_req : 1; /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cfg1_u;

/* Define the union csr_smxr_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_inst_id_mqm : 5;       /* [4:0] */
        u32 rp_lb_mqm : 2;            /* [6:5] */
        u32 rp_inst_id_qu_ld_wqe : 5; /* [11:7] */
        u32 rp_lb_qu_ld_wqe : 2;      /* [13:12] */
        u32 rsv_2 : 1;                /* [14] */
        u32 rp_fairness_en : 1;       /* [15] */
        u32 rp_fairness_num : 16;     /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cfg0_u;

/* Define the union csr_smxt_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dis_tx_eg : 1;      /* [0] */
        u32 dis_tx_mc : 1;      /* [1] */
        u32 dis_tx_eg_tl0 : 1;  /* [2] */
        u32 dis_tx_eg_tl1 : 1;  /* [3] */
        u32 reg_cap_ch_sel : 2; /* [5:4] */
        u32 cap_start : 1;      /* [6] */
        u32 rsv_3 : 25;         /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cfg_u;

/* Define the union csr_smxr_tm_grt01_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_tm_grt0 : 13; /* [12:0] */
        u32 rsv_4 : 3;       /* [15:13] */
        u32 rp_tm_grt1 : 13; /* [28:16] */
        u32 rsv_5 : 3;       /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_tm_grt01_u;

/* Define the union csr_smxr_tm_grt23_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_tm_grt2 : 13; /* [12:0] */
        u32 rsv_6 : 3;       /* [15:13] */
        u32 rp_tm_grt3 : 13; /* [28:16] */
        u32 rsv_7 : 3;       /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_tm_grt23_u;

/* Define the union csr_smrt_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_8 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_9 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smrt_int_vector_u;

/* Define the union csr_smrt_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 3;        /* [2:0] */
        u32 rsv_10 : 13;         /* [15:3] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smrt_int_u;

/* Define the union csr_smrt_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 3;        /* [2:0] */
        u32 rsv_11 : 13;         /* [15:3] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smrt_int_mask_u;

/* Define the union csr_smxr_req_mem_crt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_req_mem_crt_err_u;

/* Define the union csr_smxr_req_mem_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_req_mem_uncrt_err_u;

/* Define the union csr_smxr_miss_sop_eop_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_miss_sop_eop_err_u;

/* Define the union csr_smxr_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_indir_addr : 24; /* [23:0] */
        u32 smxr_indir_tab : 4;   /* [27:24] */
        u32 smxr_indir_stat : 2;  /* [29:28] */
        u32 smxr_indir_mode : 1;  /* [30] */
        u32 smxr_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_indrect_ctrl_u;

/* Define the union csr_smxr_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_indrect_timeout_u;

/* Define the union csr_smxr_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_indrect_data_u;

/* Define the union csr_smxt_cap_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cap_tag_l_en : 1;      /* [0] */
        u32 cap_tag_h_en : 1;      /* [1] */
        u32 cap_thd_id_en : 1;     /* [2] */
        u32 cap_dnid_en : 1;       /* [3] */
        u32 flit0_127_123 : 5;     /* [8:4] */
        u32 flit0_127_123_msk : 5; /* [13:9] */
        u32 rsv_12 : 17;           /* [30:14] */
        u32 cap_mode : 1;          /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cap_cfg_u;

/* Define the union csr_smxt_cap_field_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dst_tag_l : 12; /* [11:0] */
        u32 dst_tag_h : 6;  /* [17:12] */
        u32 dst_thd_id : 7; /* [24:18] */
        u32 dst_nd_id : 6;  /* [30:25] */
        u32 rsv_13 : 1;     /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cap_field_cfg_u;

/* Define the union csr_smxt_cnt_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxt_en_cnt_0 : 9; /* [8:0] */
        u32 rsv_14 : 7;        /* [15:9] */
        u32 smxt_en_cnt_1 : 9; /* [24:16] */
        u32 rsv_15 : 7;        /* [31:25] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cnt_cfg0_u;

/* Define the union csr_smxt_cnt_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxt_en_cnt_2 : 9; /* [8:0] */
        u32 rsv_16 : 7;        /* [15:9] */
        u32 smxt_en_cnt_3 : 9; /* [24:16] */
        u32 rsv_17 : 7;        /* [31:25] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cnt_cfg1_u;

/* Define the union csr_smxt_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxt_cnt0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cnt0_u;

/* Define the union csr_smxt_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxt_cnt1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cnt1_u;

/* Define the union csr_smxt_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxt_cnt2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cnt2_u;

/* Define the union csr_smxt_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxt_cnt3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cnt3_u;

/* Define the union csr_smxt_crdt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tl1_ctp : 5;       /* [4:0] */
        u32 tl0_ctp : 5;       /* [9:5] */
        u32 ring_resp_ctp : 3; /* [12:10] */
        u32 ring_rqst_ctp : 3; /* [15:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_crdt_cnt_u;

/* Define the union csr_smxt_fifo_depth0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 if0_tl1_ctp : 4;       /* [3:0] */
        u64 if0_tl0_ctp : 4;       /* [7:4] */
        u64 if0_ring_resp_ctp : 4; /* [11:8] */
        u64 if0_ring_rqst_ctp : 4; /* [15:12] */
        u64 if1_tl1_ctp : 4;       /* [19:16] */
        u64 if1_tl0_ctp : 4;       /* [23:20] */
        u64 if1_ring_resp_ctp : 4; /* [27:24] */
        u64 if1_ring_rqst_ctp : 4; /* [31:28] */
        u64 mc_ctp : 3;            /* [34:32] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smxt_fifo_depth0_u;

/* Define the union csr_smxt_fifo_depth1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 if2_tl1_ctp : 4;       /* [3:0] */
        u32 if2_tl0_ctp : 4;       /* [7:4] */
        u32 if2_ring_resp_ctp : 4; /* [11:8] */
        u32 if2_ring_rqst_ctp : 4; /* [15:12] */
        u32 if3_tl1_ctp : 4;       /* [19:16] */
        u32 if3_tl0_ctp : 4;       /* [23:20] */
        u32 if3_ring_resp_ctp : 4; /* [27:24] */
        u32 if3_ring_rqst_ctp : 4; /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_fifo_depth1_u;

/* Define the union csr_tl0_q_dep_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 l0_ctp : 6; /* [5:0] */
        u32 rsv_18 : 2; /* [7:6] */
        u32 l1_ctp : 6; /* [13:8] */
        u32 rsv_19 : 2; /* [15:14] */
        u32 l2_ctp : 6; /* [21:16] */
        u32 rsv_20 : 2; /* [23:22] */
        u32 l3_ctp : 6; /* [29:24] */
        u32 rsv_21 : 2; /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tl0_q_dep_u;

/* Define the union csr_tl1_q_dep_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 l0_ctp : 6; /* [5:0] */
        u32 rsv_22 : 2; /* [7:6] */
        u32 l1_ctp : 6; /* [13:8] */
        u32 rsv_23 : 2; /* [15:14] */
        u32 l2_ctp : 6; /* [21:16] */
        u32 rsv_24 : 2; /* [23:22] */
        u32 l3_ctp : 6; /* [29:24] */
        u32 rsv_25 : 2; /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tl1_q_dep_u;

/* Define the union csr_rqst_q_dep_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 l0_ctp : 4;  /* [3:0] */
        u32 l1_ctp : 4;  /* [7:4] */
        u32 l2_ctp : 4;  /* [11:8] */
        u32 l3_ctp : 4;  /* [15:12] */
        u32 rsv_26 : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rqst_q_dep_u;

/* Define the union csr_rsp_q_dep_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 l0_ctp : 4;  /* [3:0] */
        u32 l1_ctp : 4;  /* [7:4] */
        u32 l2_ctp : 4;  /* [11:8] */
        u32 l3_ctp : 4;  /* [15:12] */
        u32 l4_ctp : 4;  /* [19:16] */
        u32 rsv_27 : 12; /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsp_q_dep_u;

/* Define the union csr_rqst_crdt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm0_ctp : 5; /* [4:0] */
        u32 sm1_ctp : 5; /* [9:5] */
        u32 sm2_ctp : 5; /* [14:10] */
        u32 sm3_ctp : 5; /* [19:15] */
        u32 rsv_28 : 12; /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rqst_crdt_cnt_u;

/* Define the union csr_resp_crdt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm0_ctp : 5;  /* [4:0] */
        u32 sm1_ctp : 8;  /* [12:5] */
        u32 sm2_ctp : 5;  /* [17:13] */
        u32 sm3_ctp : 5;  /* [22:18] */
        u32 smmc_ctp : 5; /* [27:23] */
        u32 rsv_29 : 4;   /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_resp_crdt_cnt_u;

/* Define the union csr_smxr_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_cnt0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cnt0_u;

/* Define the union csr_smxr_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_cnt1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cnt1_u;

/* Define the union csr_smxr_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_cnt2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cnt2_u;

/* Define the union csr_smxr_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smxr_cnt3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cnt3_u;

/* Define the union csr_smxt_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 api_cap_done : 1; /* [0] */
        u32 rsv_30 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_ctp_u;

/* Define the union csr_smxr_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_virtio_core_inst_id : 6; /* [5:0] */
        u32 rsv_31 : 2;                 /* [7:6] */
        u32 rp_virtio_core_en : 1;      /* [8] */
        u32 rsv_32 : 23;                /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cfg2_u;

/* Define the union csr_smxr_cfg3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_virtio_csr_crdt_init_val : 5;  /* [4:0] */
        u32 rsv_33 : 2;                       /* [6:5] */
        u32 rp_virtio_csr_crdt_init_en : 1;   /* [7] */
        u32 rp_virtio_rqst_crdt_init_val : 4; /* [11:8] */
        u32 rsv_34 : 3;                       /* [14:12] */
        u32 rp_virtio_rqst_crdt_init_en : 1;  /* [15] */
        u32 rp_virtio_resp_crdt_init_val : 8; /* [23:16] */
        u32 rp_virtio_resp_crdt_init_en : 1;  /* [24] */
        u32 rsv_35 : 7;                       /* [31:25] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxr_cfg3_u;

/* Define the union csr_cfg_mem_ctrl_bus0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_mem_ctrl_bus0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cfg_mem_ctrl_bus0_u;

/* Define the union csr_cfg_mem_ctrl_bus1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_mem_ctrl_bus1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cfg_mem_ctrl_bus1_u;

/* Define the union csr_cfg_mem_ctrl_bus2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_mem_ctrl_bus2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cfg_mem_ctrl_bus2_u;

/* Define the union csr_cfg_mem_ctrl_bus3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_mem_ctrl_bus3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cfg_mem_ctrl_bus3_u;

/* Define the union csr_cfg_mem_ctrl_bus4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_mem_ctrl_bus4 : 6; /* [5:0] */
        u32 rsv_36 : 26;           /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cfg_mem_ctrl_bus4_u;

/* Define the union csr_smxt_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_fake_vf_info_pos : 2;   /* [1:0] */
        u32 rp_fake_vf_info_value : 2; /* [3:2] */
        u32 rp_fake_vf_info_en : 1;    /* [4] */
        u32 rsv_37 : 27;               /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smxt_cfg2_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smrt_version_u smrt_version;                     /* 0 */
    volatile csr_smxr_cfg1_u smxr_cfg1;                           /* 4 */
    volatile csr_smxr_cfg0_u smxr_cfg0;                           /* 8 */
    volatile csr_smxt_cfg_u smxt_cfg;                             /* C */
    volatile csr_smxr_tm_grt01_u smxr_tm_grt01;                   /* 10 */
    volatile csr_smxr_tm_grt23_u smxr_tm_grt23;                   /* 14 */
    volatile csr_smrt_int_vector_u smrt_int_vector;               /* 18 */
    volatile csr_smrt_int_u smrt_int;                             /* 1C */
    volatile csr_smrt_int_mask_u smrt_int_mask;                   /* 20 */
    volatile csr_smxr_req_mem_crt_err_u smxr_req_mem_crt_err;     /* 24 */
    volatile csr_smxr_req_mem_uncrt_err_u smxr_req_mem_uncrt_err; /* 28 */
    volatile csr_smxr_miss_sop_eop_err_u smxr_miss_sop_eop_err;   /* 2C */
    volatile csr_smxr_indrect_ctrl_u smxr_indrect_ctrl;           /* 30 */
    volatile csr_smxr_indrect_timeout_u smxr_indrect_timeout;     /* 34 */
    volatile csr_smxr_indrect_data_u smxr_indrect_data;           /* 38 */
    volatile csr_smxt_cap_cfg_u smxt_cap_cfg;                     /* 3C */
    volatile csr_smxt_cap_field_cfg_u smxt_cap_field_cfg;         /* 40 */
    volatile csr_smxt_cnt_cfg0_u smxt_cnt_cfg0;                   /* 44 */
    volatile csr_smxt_cnt_cfg1_u smxt_cnt_cfg1;                   /* 48 */
    volatile csr_smxt_cnt0_u smxt_cnt0;                           /* 4C */
    volatile csr_smxt_cnt1_u smxt_cnt1;                           /* 50 */
    volatile csr_smxt_cnt2_u smxt_cnt2;                           /* 54 */
    volatile csr_smxt_cnt3_u smxt_cnt3;                           /* 58 */
    volatile csr_smxt_crdt_cnt_u smxt_crdt_cnt;                   /* 5C */
    volatile csr_smxt_fifo_depth0_u smxt_fifo_depth0;             /* 60 */
    volatile csr_smxt_fifo_depth1_u smxt_fifo_depth1;             /* 68 */
    volatile csr_tl0_q_dep_u tl0_q_dep;                           /* 6C */
    volatile csr_tl1_q_dep_u tl1_q_dep;                           /* 70 */
    volatile csr_rqst_q_dep_u rqst_q_dep;                         /* 74 */
    volatile csr_rsp_q_dep_u rsp_q_dep;                           /* 78 */
    volatile csr_rqst_crdt_cnt_u rqst_crdt_cnt;                   /* 7C */
    volatile csr_resp_crdt_cnt_u resp_crdt_cnt;                   /* 80 */
    volatile csr_smxr_cnt0_u smxr_cnt0;                           /* 84 */
    volatile csr_smxr_cnt1_u smxr_cnt1;                           /* 88 */
    volatile csr_smxr_cnt2_u smxr_cnt2;                           /* 8C */
    volatile csr_smxr_cnt3_u smxr_cnt3;                           /* 90 */
    volatile csr_smxt_ctp_u smxt_ctp;                             /* 94 */
    volatile csr_smxr_cfg2_u smxr_cfg2;                           /* 98 */
    volatile csr_smxr_cfg3_u smxr_cfg3;                           /* 9C */
    volatile csr_cfg_mem_ctrl_bus0_u cfg_mem_ctrl_bus0;           /* A0 */
    volatile csr_cfg_mem_ctrl_bus1_u cfg_mem_ctrl_bus1;           /* A4 */
    volatile csr_cfg_mem_ctrl_bus2_u cfg_mem_ctrl_bus2;           /* A8 */
    volatile csr_cfg_mem_ctrl_bus3_u cfg_mem_ctrl_bus3;           /* AC */
    volatile csr_cfg_mem_ctrl_bus4_u cfg_mem_ctrl_bus4;           /* B0 */
    volatile csr_smxt_cfg2_u smxt_cfg2;                           /* B4 */
} S_smrt_csr_REGS_TYPE;

/* Declare the struct pointor of the module smrt_csr */
extern volatile S_smrt_csr_REGS_TYPE *gopsmrt_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMRT_VERSION_smrt_version(unsigned int usmrt_version);
int iSetSMXR_CFG1_mem_chk_en(unsigned int umem_chk_en);
int iSetSMXR_CFG1_smxr_cnt_sel(unsigned int usmxr_cnt_sel);
int iSetSMXR_CFG1_tifoe_pi_copy_enb(unsigned int utifoe_pi_copy_enb);
int iSetSMXR_CFG1_roce_pi_copy_enb(unsigned int uroce_pi_copy_enb);
int iSetSMXR_CFG1_iwarp_pi_copy_enb(unsigned int uiwarp_pi_copy_enb);
int iSetSMXR_CFG1_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSMXR_CFG1_mem_ret1n(unsigned int umem_ret1n);
int iSetSMXR_CFG1_tifoe_pftch_ctl(unsigned int utifoe_pftch_ctl);
int iSetSMXR_CFG1_tifoe_pftch_wqe_num(unsigned int utifoe_pftch_wqe_num);
int iSetSMXR_CFG1_rp_sm_uncrt_err_clr(unsigned int urp_sm_uncrt_err_clr);
int iSetSMXR_CFG1_rp_sm_uncrt_err_mask(unsigned int urp_sm_uncrt_err_mask);
int iSetSMXR_CFG1_rp_crt_err_inj_req(unsigned int urp_crt_err_inj_req);
int iSetSMXR_CFG1_rp_uncrt_err_inj_req(unsigned int urp_uncrt_err_inj_req);
int iSetSMXR_CFG0_rp_inst_id_mqm(unsigned int urp_inst_id_mqm);
int iSetSMXR_CFG0_rp_lb_mqm(unsigned int urp_lb_mqm);
int iSetSMXR_CFG0_rp_inst_id_qu_ld_wqe(unsigned int urp_inst_id_qu_ld_wqe);
int iSetSMXR_CFG0_rp_lb_qu_ld_wqe(unsigned int urp_lb_qu_ld_wqe);
int iSetSMXR_CFG0_rp_fairness_en(unsigned int urp_fairness_en);
int iSetSMXR_CFG0_rp_fairness_num(unsigned int urp_fairness_num);
int iSetSMXT_CFG_dis_tx_eg(unsigned int udis_tx_eg);
int iSetSMXT_CFG_dis_tx_mc(unsigned int udis_tx_mc);
int iSetSMXT_CFG_dis_tx_eg_tl0(unsigned int udis_tx_eg_tl0);
int iSetSMXT_CFG_dis_tx_eg_tl1(unsigned int udis_tx_eg_tl1);
int iSetSMXT_CFG_reg_cap_ch_sel(unsigned int ureg_cap_ch_sel);
int iSetSMXT_CFG_cap_start(unsigned int ucap_start);
int iSetSMXR_TM_GRT01_rp_tm_grt0(unsigned int urp_tm_grt0);
int iSetSMXR_TM_GRT01_rp_tm_grt1(unsigned int urp_tm_grt1);
int iSetSMXR_TM_GRT23_rp_tm_grt2(unsigned int urp_tm_grt2);
int iSetSMXR_TM_GRT23_rp_tm_grt3(unsigned int urp_tm_grt3);
int iSetSMRT_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMRT_INT_VECTOR_enable(unsigned int uenable);
int iSetSMRT_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMRT_INT_int_data(unsigned int uint_data);
int iSetSMRT_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMRT_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMRT_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMXR_REQ_MEM_CRT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMXR_REQ_MEM_CRT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMXR_REQ_MEM_CRT_ERR_sticky(unsigned int usticky);
int iSetSMXR_REQ_MEM_UNCRT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMXR_REQ_MEM_UNCRT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMXR_REQ_MEM_UNCRT_ERR_sticky(unsigned int usticky);
int iSetSMXR_MISS_SOP_EOP_ERR_error_bit(unsigned int uerror_bit);
int iSetSMXR_MISS_SOP_EOP_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMXR_MISS_SOP_EOP_ERR_sticky(unsigned int usticky);
int iSetSMXR_INDRECT_CTRL_smxr_indir_addr(unsigned int usmxr_indir_addr);
int iSetSMXR_INDRECT_CTRL_smxr_indir_tab(unsigned int usmxr_indir_tab);
int iSetSMXR_INDRECT_CTRL_smxr_indir_stat(unsigned int usmxr_indir_stat);
int iSetSMXR_INDRECT_CTRL_smxr_indir_mode(unsigned int usmxr_indir_mode);
int iSetSMXR_INDRECT_CTRL_smxr_indir_vld(unsigned int usmxr_indir_vld);
int iSetSMXR_INDRECT_TIMEOUT_smxr_indir_timeout(unsigned int usmxr_indir_timeout);
int iSetSMXR_INDRECT_DATA_smxr_indir_data(unsigned int usmxr_indir_data);
int iSetSMXT_CAP_CFG_cap_tag_l_en(unsigned int ucap_tag_l_en);
int iSetSMXT_CAP_CFG_cap_tag_h_en(unsigned int ucap_tag_h_en);
int iSetSMXT_CAP_CFG_cap_thd_id_en(unsigned int ucap_thd_id_en);
int iSetSMXT_CAP_CFG_cap_dnid_en(unsigned int ucap_dnid_en);
int iSetSMXT_CAP_CFG_flit0_127_123(unsigned int uflit0_127_123);
int iSetSMXT_CAP_CFG_flit0_127_123_msk(unsigned int uflit0_127_123_msk);
int iSetSMXT_CAP_CFG_cap_mode(unsigned int ucap_mode);
int iSetSMXT_CAP_FIELD_CFG_dst_tag_l(unsigned int udst_tag_l);
int iSetSMXT_CAP_FIELD_CFG_dst_tag_h(unsigned int udst_tag_h);
int iSetSMXT_CAP_FIELD_CFG_dst_thd_id(unsigned int udst_thd_id);
int iSetSMXT_CAP_FIELD_CFG_dst_nd_id(unsigned int udst_nd_id);
int iSetSMXT_CNT_CFG0_smxt_en_cnt_0(unsigned int usmxt_en_cnt_0);
int iSetSMXT_CNT_CFG0_smxt_en_cnt_1(unsigned int usmxt_en_cnt_1);
int iSetSMXT_CNT_CFG1_smxt_en_cnt_2(unsigned int usmxt_en_cnt_2);
int iSetSMXT_CNT_CFG1_smxt_en_cnt_3(unsigned int usmxt_en_cnt_3);
int iSetSMXT_CNT0_smxt_cnt0(unsigned int usmxt_cnt0);
int iSetSMXT_CNT1_smxt_cnt1(unsigned int usmxt_cnt1);
int iSetSMXT_CNT2_smxt_cnt2(unsigned int usmxt_cnt2);
int iSetSMXT_CNT3_smxt_cnt3(unsigned int usmxt_cnt3);
int iSetSMXT_CRDT_CNT_tl1_ctp(unsigned int utl1_ctp);
int iSetSMXT_CRDT_CNT_tl0_ctp(unsigned int utl0_ctp);
int iSetSMXT_CRDT_CNT_ring_resp_ctp(unsigned int uring_resp_ctp);
int iSetSMXT_CRDT_CNT_ring_rqst_ctp(unsigned int uring_rqst_ctp);
int iSetSMXT_FIFO_DEPTH0_if0_tl1_ctp(unsigned int uif0_tl1_ctp);
int iSetSMXT_FIFO_DEPTH0_if0_tl0_ctp(unsigned int uif0_tl0_ctp);
int iSetSMXT_FIFO_DEPTH0_if0_ring_resp_ctp(unsigned int uif0_ring_resp_ctp);
int iSetSMXT_FIFO_DEPTH0_if0_ring_rqst_ctp(unsigned int uif0_ring_rqst_ctp);
int iSetSMXT_FIFO_DEPTH0_if1_tl1_ctp(unsigned int uif1_tl1_ctp);
int iSetSMXT_FIFO_DEPTH0_if1_tl0_ctp(unsigned int uif1_tl0_ctp);
int iSetSMXT_FIFO_DEPTH0_if1_ring_resp_ctp(unsigned int uif1_ring_resp_ctp);
int iSetSMXT_FIFO_DEPTH0_if1_ring_rqst_ctp(unsigned int uif1_ring_rqst_ctp);
int iSetSMXT_FIFO_DEPTH0_mc_ctp(unsigned int umc_ctp);
int iSetSMXT_FIFO_DEPTH1_if2_tl1_ctp(unsigned int uif2_tl1_ctp);
int iSetSMXT_FIFO_DEPTH1_if2_tl0_ctp(unsigned int uif2_tl0_ctp);
int iSetSMXT_FIFO_DEPTH1_if2_ring_resp_ctp(unsigned int uif2_ring_resp_ctp);
int iSetSMXT_FIFO_DEPTH1_if2_ring_rqst_ctp(unsigned int uif2_ring_rqst_ctp);
int iSetSMXT_FIFO_DEPTH1_if3_tl1_ctp(unsigned int uif3_tl1_ctp);
int iSetSMXT_FIFO_DEPTH1_if3_tl0_ctp(unsigned int uif3_tl0_ctp);
int iSetSMXT_FIFO_DEPTH1_if3_ring_resp_ctp(unsigned int uif3_ring_resp_ctp);
int iSetSMXT_FIFO_DEPTH1_if3_ring_rqst_ctp(unsigned int uif3_ring_rqst_ctp);
int iSetTL0_Q_DEP_l0_ctp(unsigned int ul0_ctp);
int iSetTL0_Q_DEP_l1_ctp(unsigned int ul1_ctp);
int iSetTL0_Q_DEP_l2_ctp(unsigned int ul2_ctp);
int iSetTL0_Q_DEP_l3_ctp(unsigned int ul3_ctp);
int iSetTL1_Q_DEP_l0_ctp(unsigned int ul0_ctp);
int iSetTL1_Q_DEP_l1_ctp(unsigned int ul1_ctp);
int iSetTL1_Q_DEP_l2_ctp(unsigned int ul2_ctp);
int iSetTL1_Q_DEP_l3_ctp(unsigned int ul3_ctp);
int iSetRQST_Q_DEP_l0_ctp(unsigned int ul0_ctp);
int iSetRQST_Q_DEP_l1_ctp(unsigned int ul1_ctp);
int iSetRQST_Q_DEP_l2_ctp(unsigned int ul2_ctp);
int iSetRQST_Q_DEP_l3_ctp(unsigned int ul3_ctp);
int iSetRSP_Q_DEP_l0_ctp(unsigned int ul0_ctp);
int iSetRSP_Q_DEP_l1_ctp(unsigned int ul1_ctp);
int iSetRSP_Q_DEP_l2_ctp(unsigned int ul2_ctp);
int iSetRSP_Q_DEP_l3_ctp(unsigned int ul3_ctp);
int iSetRSP_Q_DEP_l4_ctp(unsigned int ul4_ctp);
int iSetRQST_CRDT_CNT_sm0_ctp(unsigned int usm0_ctp);
int iSetRQST_CRDT_CNT_sm1_ctp(unsigned int usm1_ctp);
int iSetRQST_CRDT_CNT_sm2_ctp(unsigned int usm2_ctp);
int iSetRQST_CRDT_CNT_sm3_ctp(unsigned int usm3_ctp);
int iSetRESP_CRDT_CNT_sm0_ctp(unsigned int usm0_ctp);
int iSetRESP_CRDT_CNT_sm1_ctp(unsigned int usm1_ctp);
int iSetRESP_CRDT_CNT_sm2_ctp(unsigned int usm2_ctp);
int iSetRESP_CRDT_CNT_sm3_ctp(unsigned int usm3_ctp);
int iSetRESP_CRDT_CNT_smmc_ctp(unsigned int usmmc_ctp);
int iSetSMXR_CNT0_smxr_cnt0(unsigned int usmxr_cnt0);
int iSetSMXR_CNT1_smxr_cnt1(unsigned int usmxr_cnt1);
int iSetSMXR_CNT2_smxr_cnt2(unsigned int usmxr_cnt2);
int iSetSMXR_CNT3_smxr_cnt3(unsigned int usmxr_cnt3);
int iSetSMXT_CTP_api_cap_done(unsigned int uapi_cap_done);
int iSetSMXR_CFG2_rp_virtio_core_inst_id(unsigned int urp_virtio_core_inst_id);
int iSetSMXR_CFG2_rp_virtio_core_en(unsigned int urp_virtio_core_en);
int iSetSMXR_CFG3_rp_virtio_csr_crdt_init_val(unsigned int urp_virtio_csr_crdt_init_val);
int iSetSMXR_CFG3_rp_virtio_csr_crdt_init_en(unsigned int urp_virtio_csr_crdt_init_en);
int iSetSMXR_CFG3_rp_virtio_rqst_crdt_init_val(unsigned int urp_virtio_rqst_crdt_init_val);
int iSetSMXR_CFG3_rp_virtio_rqst_crdt_init_en(unsigned int urp_virtio_rqst_crdt_init_en);
int iSetSMXR_CFG3_rp_virtio_resp_crdt_init_val(unsigned int urp_virtio_resp_crdt_init_val);
int iSetSMXR_CFG3_rp_virtio_resp_crdt_init_en(unsigned int urp_virtio_resp_crdt_init_en);
int iSetCFG_MEM_CTRL_BUS0_cfg_mem_ctrl_bus0(unsigned int ucfg_mem_ctrl_bus0);
int iSetCFG_MEM_CTRL_BUS1_cfg_mem_ctrl_bus1(unsigned int ucfg_mem_ctrl_bus1);
int iSetCFG_MEM_CTRL_BUS2_cfg_mem_ctrl_bus2(unsigned int ucfg_mem_ctrl_bus2);
int iSetCFG_MEM_CTRL_BUS3_cfg_mem_ctrl_bus3(unsigned int ucfg_mem_ctrl_bus3);
int iSetCFG_MEM_CTRL_BUS4_cfg_mem_ctrl_bus4(unsigned int ucfg_mem_ctrl_bus4);
int iSetSMXT_CFG2_rp_fake_vf_info_pos(unsigned int urp_fake_vf_info_pos);
int iSetSMXT_CFG2_rp_fake_vf_info_value(unsigned int urp_fake_vf_info_value);
int iSetSMXT_CFG2_rp_fake_vf_info_en(unsigned int urp_fake_vf_info_en);

/* Define the union csr_smir_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_version_u;

/* Define the union csr_smir_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dis_rx_rqst : 1;               /* [0] */
        u32 dis_rx_resp : 1;               /* [1] */
        u32 simple_hash : 1;               /* [2] */
        u32 reg_cap_ch_sel : 1;            /* [3] */
        u32 msb_thread_cfg : 1;            /* [4] */
        u32 mem_chk_en : 1;                /* [5] */
        u32 rp_l2nic_db_pseudo_api_en : 1; /* [6] */
        u32 rsv_0 : 9;                     /* [15:7] */
        u32 sp_ram_tmod : 7;               /* [22:16] */
        u32 mem_ret1n : 1;                 /* [23] */
        u32 rp_crt_err_inj_req : 1;        /* [24] */
        u32 rp_uncrt_err_inj_req : 1;      /* [25] */
        u32 rsv_1 : 6;                     /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cfg_u;

/* Define the union csr_smir_hash_seed0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hash_seed_cfg0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_hash_seed0_u;

/* Define the union csr_smir_hash_seed1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hash_seed_cfg1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_hash_seed1_u;

/* Define the union csr_smir_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_2 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_3 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_int_vector_u;

/* Define the union csr_smir_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 5;        /* [4:0] */
        u32 rsv_4 : 11;          /* [15:5] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_int_u;

/* Define the union csr_smir_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 5;        /* [4:0] */
        u32 rsv_5 : 11;          /* [15:5] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_int_mask_u;

/* Define the union csr_smir_err_spec_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_err_spec_th_u;

/* Define the union csr_smir_req_msg_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_req_msg_err_u;

/* Define the union csr_smir_resp_msg_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_resp_msg_err_u;

/* Define the union csr_smir_mem_ecc_crt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_mem_ecc_crt_err_u;

/* Define the union csr_smir_mem_ecc_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_mem_ecc_uncrt_err_u;

/* Define the union csr_smir_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_indir_addr : 24; /* [23:0] */
        u32 smir_indir_tab : 4;   /* [27:24] */
        u32 smir_indir_stat : 2;  /* [29:28] */
        u32 smir_indir_mode : 1;  /* [30] */
        u32 smir_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_indrect_ctrl_u;

/* Define the union csr_smir_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_indrect_timeout_u;

/* Define the union csr_smir_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_indrect_data_u;

/* Define the union csr_smir_cap0_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 stag_h : 7;    /* [6:0] */
        u32 rsv_6 : 3;     /* [9:7] */
        u32 src : 5;       /* [14:10] */
        u32 s_inst_id : 6; /* [20:15] */
        u32 s_op_id : 6;   /* [26:21] */
        u32 s_code : 2;    /* [28:27] */
        u32 s_e0_bit : 1;  /* [29] */
        u32 s_e1_bit : 1;  /* [30] */
        u32 cap_mode : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap0_cfg_u;

/* Define the union csr_smir_cap1_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 flit0_111_96_msk : 16; /* [15:0] */
        u32 flit0_111_96 : 16;     /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap1_cfg_u;

/* Define the union csr_smir_cap2_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 flit0_95_64 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap2_cfg_u;

/* Define the union csr_smir_cap3_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 flit0_63_32 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap3_cfg_u;

/* Define the union csr_smir_cap4_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 flit0_31_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap4_cfg_u;

/* Define the union csr_smir_cap6_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 stag_l : 12;          /* [11:0] */
        u32 thread_id : 7;        /* [18:12] */
        u32 cap_thread_id_en : 1; /* [19] */
        u32 flit0_95_0_msk : 6;   /* [25:20] */
        u32 rsv_7 : 6;            /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap6_cfg_u;

/* Define the union csr_smir_en_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_en_cnt_0 : 8; /* [7:0] */
        u32 smir_en_cnt_1 : 8; /* [15:8] */
        u32 smir_en_cnt_2 : 8; /* [23:16] */
        u32 cap_stag_h_en : 1; /* [24] */
        u32 cap_src_en : 1;    /* [25] */
        u32 cap_inst_en : 1;   /* [26] */
        u32 cap_op_en : 1;     /* [27] */
        u32 cap_code_en : 1;   /* [28] */
        u32 cap_err0_en : 1;   /* [29] */
        u32 cap_err1_en : 1;   /* [30] */
        u32 cap_stag_l_en : 1; /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_en_cnt_u;

/* Define the union csr_smir_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_cnt0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cnt0_u;

/* Define the union csr_smir_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_cnt1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cnt1_u;

/* Define the union csr_smir_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smir_cnt2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cnt2_u;

/* Define the union csr_smir_crdt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 eg0_ctp : 3;  /* [2:0] */
        u32 resp_ctp : 3; /* [5:3] */
        u32 rqst_ctp : 3; /* [8:6] */
        u32 smmc_ctp : 5; /* [13:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_crdt_cnt_u;

/* Define the union csr_smir_cap_flit0_data0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit0_data0_u;

/* Define the union csr_smir_cap_flit0_data1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit0_data1_u;

/* Define the union csr_smir_cap_flit1_data0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit1_data0_u;

/* Define the union csr_smir_cap_flit1_data1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit1_data1_u;

/* Define the union csr_smir_cap_flit2_data0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit2_data0_u;

/* Define the union csr_smir_cap_flit2_data1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit2_data1_u;

/* Define the union csr_smir_cap_flit3_data0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit3_data0_u;

/* Define the union csr_smir_cap_flit3_data1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit3_data1_u;

/* Define the union csr_smir_cap_flit4_data0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit4_data0_u;

/* Define the union csr_smir_cap_flit4_data1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit4_data1_u;

/* Define the union csr_smir_cap_flit5_data0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit5_data0_u;

/* Define the union csr_smir_cap_flit5_data1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data0 : 63; /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smir_cap_flit5_data1_u;

/* Define the union csr_smir_cap_flit0_data2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 capture_data0 : 2;  /* [1:0] */
        u32 trigger_enable : 1; /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap_flit0_data2_u;

/* Define the union csr_smir_cap_flit1_data2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 capture_data0 : 2;  /* [1:0] */
        u32 trigger_enable : 1; /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap_flit1_data2_u;

/* Define the union csr_smir_cap_flit2_data2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 capture_data0 : 2;  /* [1:0] */
        u32 trigger_enable : 1; /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap_flit2_data2_u;

/* Define the union csr_smir_cap_flit3_data2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 capture_data0 : 2;  /* [1:0] */
        u32 trigger_enable : 1; /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap_flit3_data2_u;

/* Define the union csr_smir_cap_flit4_data2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 capture_data0 : 2;  /* [1:0] */
        u32 trigger_enable : 1; /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap_flit4_data2_u;

/* Define the union csr_smir_cap_flit5_data2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 capture_data0 : 2;  /* [1:0] */
        u32 trigger_enable : 1; /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cap_flit5_data2_u;

/* Define the union csr_smir_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_l2nic_pf_start_idx : 4; /* [3:0] */
        u32 rp_l2nic_pf_end_idx : 4;   /* [7:4] */
        u32 rp_l2nic_lb_md : 2;        /* [9:8] */
        u32 rp_l2nic_cmdq_md : 2;      /* [11:10] */
        u32 rp_l2nic_flexible_md : 1;  /* [12] */
        u32 rsv_8 : 19;                /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smir_cfg1_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smir_version_u smir_version;                     /* 0 */
    volatile csr_smir_cfg_u smir_cfg;                             /* 4 */
    volatile csr_smir_hash_seed0_u smir_hash_seed0;               /* 8 */
    volatile csr_smir_hash_seed1_u smir_hash_seed1;               /* C */
    volatile csr_smir_int_vector_u smir_int_vector;               /* 10 */
    volatile csr_smir_int_u smir_int;                             /* 14 */
    volatile csr_smir_int_mask_u smir_int_mask;                   /* 18 */
    volatile csr_smir_err_spec_th_u smir_err_spec_th;             /* 1C */
    volatile csr_smir_req_msg_err_u smir_req_msg_err;             /* 20 */
    volatile csr_smir_resp_msg_err_u smir_resp_msg_err;           /* 24 */
    volatile csr_smir_mem_ecc_crt_err_u smir_mem_ecc_crt_err;     /* 28 */
    volatile csr_smir_mem_ecc_uncrt_err_u smir_mem_ecc_uncrt_err; /* 2C */
    volatile csr_smir_indrect_ctrl_u smir_indrect_ctrl;           /* 30 */
    volatile csr_smir_indrect_timeout_u smir_indrect_timeout;     /* 34 */
    volatile csr_smir_indrect_data_u smir_indrect_data;           /* 38 */
    volatile csr_smir_cap0_cfg_u smir_cap0_cfg;                   /* 3C */
    volatile csr_smir_cap1_cfg_u smir_cap1_cfg;                   /* 40 */
    volatile csr_smir_cap2_cfg_u smir_cap2_cfg;                   /* 44 */
    volatile csr_smir_cap3_cfg_u smir_cap3_cfg;                   /* 48 */
    volatile csr_smir_cap4_cfg_u smir_cap4_cfg;                   /* 4C */
    volatile csr_smir_cap6_cfg_u smir_cap6_cfg;                   /* 50 */
    volatile csr_smir_en_cnt_u smir_en_cnt;                       /* 54 */
    volatile csr_smir_cnt0_u smir_cnt0;                           /* 58 */
    volatile csr_smir_cnt1_u smir_cnt1;                           /* 5C */
    volatile csr_smir_cnt2_u smir_cnt2;                           /* 60 */
    volatile csr_smir_crdt_cnt_u smir_crdt_cnt;                   /* 64 */
    volatile csr_smir_cap_flit0_data0_u smir_cap_flit0_data0;     /* 68 */
    volatile csr_smir_cap_flit0_data1_u smir_cap_flit0_data1;     /* 70 */
    volatile csr_smir_cap_flit1_data0_u smir_cap_flit1_data0;     /* 78 */
    volatile csr_smir_cap_flit1_data1_u smir_cap_flit1_data1;     /* 80 */
    volatile csr_smir_cap_flit2_data0_u smir_cap_flit2_data0;     /* 88 */
    volatile csr_smir_cap_flit2_data1_u smir_cap_flit2_data1;     /* 90 */
    volatile csr_smir_cap_flit3_data0_u smir_cap_flit3_data0;     /* 98 */
    volatile csr_smir_cap_flit3_data1_u smir_cap_flit3_data1;     /* A0 */
    volatile csr_smir_cap_flit4_data0_u smir_cap_flit4_data0;     /* A8 */
    volatile csr_smir_cap_flit4_data1_u smir_cap_flit4_data1;     /* B0 */
    volatile csr_smir_cap_flit5_data0_u smir_cap_flit5_data0;     /* B8 */
    volatile csr_smir_cap_flit5_data1_u smir_cap_flit5_data1;     /* C0 */
    volatile csr_smir_cap_flit0_data2_u smir_cap_flit0_data2;     /* C8 */
    volatile csr_smir_cap_flit1_data2_u smir_cap_flit1_data2;     /* CC */
    volatile csr_smir_cap_flit2_data2_u smir_cap_flit2_data2;     /* D0 */
    volatile csr_smir_cap_flit3_data2_u smir_cap_flit3_data2;     /* D4 */
    volatile csr_smir_cap_flit4_data2_u smir_cap_flit4_data2;     /* D8 */
    volatile csr_smir_cap_flit5_data2_u smir_cap_flit5_data2;     /* DC */
    volatile csr_smir_cfg1_u smir_cfg1;                           /* E0 */
} S_smir_csr_REGS_TYPE;

/* Declare the struct pointor of the module smir_csr */
extern volatile S_smir_csr_REGS_TYPE *gopsmir_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMIR_VERSION_smir_version(unsigned int usmir_version);
int iSetSMIR_CFG_dis_rx_rqst(unsigned int udis_rx_rqst);
int iSetSMIR_CFG_dis_rx_resp(unsigned int udis_rx_resp);
int iSetSMIR_CFG_simple_hash(unsigned int usimple_hash);
int iSetSMIR_CFG_reg_cap_ch_sel(unsigned int ureg_cap_ch_sel);
int iSetSMIR_CFG_msb_thread_cfg(unsigned int umsb_thread_cfg);
int iSetSMIR_CFG_mem_chk_en(unsigned int umem_chk_en);
int iSetSMIR_CFG_rp_l2nic_db_pseudo_api_en(unsigned int urp_l2nic_db_pseudo_api_en);
int iSetSMIR_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMIR_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSMIR_CFG_rp_crt_err_inj_req(unsigned int urp_crt_err_inj_req);
int iSetSMIR_CFG_rp_uncrt_err_inj_req(unsigned int urp_uncrt_err_inj_req);
int iSetSMIR_HASH_SEED0_hash_seed_cfg0(unsigned int uhash_seed_cfg0);
int iSetSMIR_HASH_SEED1_hash_seed_cfg1(unsigned int uhash_seed_cfg1);
int iSetSMIR_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMIR_INT_VECTOR_enable(unsigned int uenable);
int iSetSMIR_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMIR_INT_int_data(unsigned int uint_data);
int iSetSMIR_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMIR_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMIR_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMIR_ERR_SPEC_TH_err(unsigned int uerr);
int iSetSMIR_ERR_SPEC_TH_multi_err(unsigned int umulti_err);
int iSetSMIR_ERR_SPEC_TH_sticky(unsigned int usticky);
int iSetSMIR_REQ_MSG_ERR_error_bit(unsigned int uerror_bit);
int iSetSMIR_REQ_MSG_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIR_REQ_MSG_ERR_sticky(unsigned int usticky);
int iSetSMIR_RESP_MSG_ERR_error_bit(unsigned int uerror_bit);
int iSetSMIR_RESP_MSG_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIR_RESP_MSG_ERR_sticky(unsigned int usticky);
int iSetSMIR_MEM_ECC_CRT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMIR_MEM_ECC_CRT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIR_MEM_ECC_CRT_ERR_sticky(unsigned int usticky);
int iSetSMIR_MEM_ECC_UNCRT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMIR_MEM_ECC_UNCRT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIR_MEM_ECC_UNCRT_ERR_sticky(unsigned int usticky);
int iSetSMIR_INDRECT_CTRL_smir_indir_addr(unsigned int usmir_indir_addr);
int iSetSMIR_INDRECT_CTRL_smir_indir_tab(unsigned int usmir_indir_tab);
int iSetSMIR_INDRECT_CTRL_smir_indir_stat(unsigned int usmir_indir_stat);
int iSetSMIR_INDRECT_CTRL_smir_indir_mode(unsigned int usmir_indir_mode);
int iSetSMIR_INDRECT_CTRL_smir_indir_vld(unsigned int usmir_indir_vld);
int iSetSMIR_INDRECT_TIMEOUT_smir_indir_timeout(unsigned int usmir_indir_timeout);
int iSetSMIR_INDRECT_DATA_smir_indir_data(unsigned int usmir_indir_data);
int iSetSMIR_CAP0_CFG_stag_h(unsigned int ustag_h);
int iSetSMIR_CAP0_CFG_src(unsigned int usrc);
int iSetSMIR_CAP0_CFG_s_inst_id(unsigned int us_inst_id);
int iSetSMIR_CAP0_CFG_s_op_id(unsigned int us_op_id);
int iSetSMIR_CAP0_CFG_s_code(unsigned int us_code);
int iSetSMIR_CAP0_CFG_s_e0_bit(unsigned int us_e0_bit);
int iSetSMIR_CAP0_CFG_s_e1_bit(unsigned int us_e1_bit);
int iSetSMIR_CAP0_CFG_cap_mode(unsigned int ucap_mode);
int iSetSMIR_CAP1_CFG_flit0_111_96_msk(unsigned int uflit0_111_96_msk);
int iSetSMIR_CAP1_CFG_flit0_111_96(unsigned int uflit0_111_96);
int iSetSMIR_CAP2_CFG_flit0_95_64(unsigned int uflit0_95_64);
int iSetSMIR_CAP3_CFG_flit0_63_32(unsigned int uflit0_63_32);
int iSetSMIR_CAP4_CFG_flit0_31_0(unsigned int uflit0_31_0);
int iSetSMIR_CAP6_CFG_stag_l(unsigned int ustag_l);
int iSetSMIR_CAP6_CFG_thread_id(unsigned int uthread_id);
int iSetSMIR_CAP6_CFG_cap_thread_id_en(unsigned int ucap_thread_id_en);
int iSetSMIR_CAP6_CFG_flit0_95_0_msk(unsigned int uflit0_95_0_msk);
int iSetSMIR_EN_CNT_smir_en_cnt_0(unsigned int usmir_en_cnt_0);
int iSetSMIR_EN_CNT_smir_en_cnt_1(unsigned int usmir_en_cnt_1);
int iSetSMIR_EN_CNT_smir_en_cnt_2(unsigned int usmir_en_cnt_2);
int iSetSMIR_EN_CNT_cap_stag_h_en(unsigned int ucap_stag_h_en);
int iSetSMIR_EN_CNT_cap_src_en(unsigned int ucap_src_en);
int iSetSMIR_EN_CNT_cap_inst_en(unsigned int ucap_inst_en);
int iSetSMIR_EN_CNT_cap_op_en(unsigned int ucap_op_en);
int iSetSMIR_EN_CNT_cap_code_en(unsigned int ucap_code_en);
int iSetSMIR_EN_CNT_cap_err0_en(unsigned int ucap_err0_en);
int iSetSMIR_EN_CNT_cap_err1_en(unsigned int ucap_err1_en);
int iSetSMIR_EN_CNT_cap_stag_l_en(unsigned int ucap_stag_l_en);
int iSetSMIR_CNT0_smir_cnt0(unsigned int usmir_cnt0);
int iSetSMIR_CNT1_smir_cnt1(unsigned int usmir_cnt1);
int iSetSMIR_CNT2_smir_cnt2(unsigned int usmir_cnt2);
int iSetSMIR_CRDT_CNT_eg0_ctp(unsigned int ueg0_ctp);
int iSetSMIR_CRDT_CNT_resp_ctp(unsigned int uresp_ctp);
int iSetSMIR_CRDT_CNT_rqst_ctp(unsigned int urqst_ctp);
int iSetSMIR_CRDT_CNT_smmc_ctp(unsigned int usmmc_ctp);
int iSetSMIR_CAP_FLIT0_DATA0_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT0_DATA0_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT0_DATA1_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT0_DATA1_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT1_DATA0_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT1_DATA0_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT1_DATA1_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT1_DATA1_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT2_DATA0_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT2_DATA0_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT2_DATA1_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT2_DATA1_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT3_DATA0_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT3_DATA0_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT3_DATA1_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT3_DATA1_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT4_DATA0_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT4_DATA0_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT4_DATA1_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT4_DATA1_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT5_DATA0_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT5_DATA0_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT5_DATA1_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT5_DATA1_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT0_DATA2_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT0_DATA2_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT1_DATA2_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT1_DATA2_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT2_DATA2_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT2_DATA2_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT3_DATA2_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT3_DATA2_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT4_DATA2_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT4_DATA2_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CAP_FLIT5_DATA2_capture_data0(unsigned int ucapture_data0);
int iSetSMIR_CAP_FLIT5_DATA2_trigger_enable(unsigned int utrigger_enable);
int iSetSMIR_CFG1_rp_l2nic_pf_start_idx(unsigned int urp_l2nic_pf_start_idx);
int iSetSMIR_CFG1_rp_l2nic_pf_end_idx(unsigned int urp_l2nic_pf_end_idx);
int iSetSMIR_CFG1_rp_l2nic_lb_md(unsigned int urp_l2nic_lb_md);
int iSetSMIR_CFG1_rp_l2nic_cmdq_md(unsigned int urp_l2nic_cmdq_md);
int iSetSMIR_CFG1_rp_l2nic_flexible_md(unsigned int urp_l2nic_flexible_md);

/* Define the union csr_smeg0_abuf0_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_abuf0_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_abuf0_version_u;

/* Define the union csr_sm_abuf_th_grw_wm_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_0 : 30; /* [29:0] */
        u32 rsv_0 : 2;      /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_0_u;

/* Define the union csr_sm_abuf_th_grw_wm_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_1 : 30; /* [29:0] */
        u32 rsv_1 : 2;      /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_1_u;

/* Define the union csr_sm_abuf_th_grw_wm_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_2 : 30; /* [29:0] */
        u32 rsv_2 : 2;      /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_2_u;

/* Define the union csr_sm_abuf_th_grw_wm_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_3 : 30; /* [29:0] */
        u32 rsv_3 : 2;      /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_3_u;

/* Define the union csr_sm_abuf_th_grw_wm_4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_4 : 30; /* [29:0] */
        u32 rsv_4 : 2;      /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_4_u;

/* Define the union csr_sm_abuf_th_grw_wm_5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_5 : 30; /* [29:0] */
        u32 rsv_5 : 2;      /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_5_u;

/* Define the union csr_sm_abuf_th_grw_wm_6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_grow_6 : 12; /* [11:0] */
        u32 rsv_6 : 20;     /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_grw_wm_6_u;

/* Define the union csr_sm_abuf_th_shk_wm_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_0 : 30; /* [29:0] */
        u32 rsv_7 : 2;        /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_0_u;

/* Define the union csr_sm_abuf_th_shk_wm_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_1 : 30; /* [29:0] */
        u32 rsv_8 : 2;        /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_1_u;

/* Define the union csr_sm_abuf_th_shk_wm_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_2 : 30; /* [29:0] */
        u32 rsv_9 : 2;        /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_2_u;

/* Define the union csr_sm_abuf_th_shk_wm_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_3 : 30; /* [29:0] */
        u32 rsv_10 : 2;       /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_3_u;

/* Define the union csr_sm_abuf_th_shk_wm_4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_4 : 30; /* [29:0] */
        u32 rsv_11 : 2;       /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_4_u;

/* Define the union csr_sm_abuf_th_shk_wm_5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_5 : 30; /* [29:0] */
        u32 rsv_12 : 2;       /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_5_u;

/* Define the union csr_sm_abuf_th_shk_wm_6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 th_shrink_6 : 12; /* [11:0] */
        u32 rsv_13 : 20;      /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_th_shk_wm_6_u;

/* Define the union csr_sm_abuf_flrc_attr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 flid_torc : 5; /* [4:0] */
        u32 rsv_14 : 3;    /* [7:5] */
        u32 en_rclm : 1;   /* [8] */
        u32 stop_rclm : 1; /* [9] */
        u32 rsv_15 : 22;   /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_flrc_attr_u;

/* Define the union csr_sm_abuf_flrc_num_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 num_rclm : 28; /* [27:0] */
        u32 rsv_16 : 4;    /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_flrc_num_u;

/* Define the union csr_sm_abuf_flrc_bound_u_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_flrc_bound_u : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_flrc_bound_u_u;

/* Define the union csr_sm_abuf_flrc_bound_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_flrc_bound_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_flrc_bound_l_u;

/* Define the union csr_sm_abuf_pf_lifo_clr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_pf_lifo_clr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_pf_lifo_clr_u;

/* Define the union csr_sm_abuf_mem_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lifo_pberr_gen : 1; /* [0] */
        u32 info_pberr_gen : 1; /* [1] */
        u32 ibuf_pberr_gen : 1; /* [2] */
        u32 ireq_pberr_gen : 1; /* [3] */
        u32 pb_chk_en : 1;      /* [4] */
        u32 rsv_17 : 3;         /* [7:5] */
        u32 sp_ram_tmod : 7;    /* [14:8] */
        u32 mem_ret1n : 1;      /* [15] */
        u32 tp_ram_tmod : 8;    /* [23:16] */
        u32 rsv_18 : 8;         /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_mem_cfg_u;

/* Define the union csr_sm_abuf_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_19 : 3;         /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_20 : 3;         /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_int_vector_u;

/* Define the union csr_sm_abuf_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 6;        /* [5:0] */
        u32 rsv_21 : 10;         /* [15:6] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_int_u;

/* Define the union csr_sm_abuf_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 6;        /* [5:0] */
        u32 rsv_22 : 10;         /* [15:6] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_int_mask_u;

/* Define the union csr_sm_abuf_pberr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_pberr_u;

/* Define the union csr_sm_abuf_fl_uflow_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_fl_uflow_err_u;

/* Define the union csr_sm_abuf_fl_oflow_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_fl_oflow_err_u;

/* Define the union csr_sm_abuf_fl_tail_miss_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_fl_tail_miss_err_u;

/* Define the union csr_smeg0_abuf_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_abuf_indir_addr : 24; /* [23:0] */
        u32 smeg0_abuf_indir_tab : 4;   /* [27:24] */
        u32 smeg0_abuf_indir_stat : 2;  /* [29:28] */
        u32 smeg0_abuf_indir_mode : 1;  /* [30] */
        u32 smeg0_abuf_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_abuf_indrect_ctrl_u;

/* Define the union csr_smeg0_abuf_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_abuf_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_abuf_indrect_timeout_u;

/* Define the union csr_smeg0_abuf_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_abuf_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_abuf_indrect_data_u;

/* Define the union csr_sm_abuf_dis_alloc_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_dis_alloc : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_dis_alloc_u;

/* Define the union csr_sm_abuf_dis_de_alloc_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_dis_de_alloc : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_dis_de_alloc_u;

/* Define the union csr_sm_abuf_flrc_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 done_rclm : 1;      /* [0] */
        u32 rlist_cleaning : 1; /* [1] */
        u32 wlist_cleaning : 1; /* [2] */
        u32 rsv_23 : 1;         /* [3] */
        u32 ctp : 28;           /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_flrc_st_u;

/* Define the union csr_sm_abuf_empty_fl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_empty_fl_u;

/* Define the union csr_sm_abuf_full_fl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_full_fl_u;

/* Define the union csr_sm_abuf_st_wm_grow_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_st_wm_grow_u;

/* Define the union csr_sm_abuf_st_wm_shrink_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_st_wm_shrink_u;

/* Define the union csr_sm_abuf_cnt_sel0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_src_sel : 5;   /* [4:0] */
        u32 cnt0_event_sel : 3; /* [7:5] */
        u32 cnt1_src_sel : 5;   /* [12:8] */
        u32 cnt1_event_sel : 3; /* [15:13] */
        u32 cnt2_src_sel : 5;   /* [20:16] */
        u32 cnt2_event_sel : 3; /* [23:21] */
        u32 cnt3_src_sel : 5;   /* [28:24] */
        u32 cnt3_event_sel : 3; /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_cnt_sel0_u;

/* Define the union csr_sm_abuf_cnt_sel1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt4_src_sel : 5;   /* [4:0] */
        u32 cnt4_event_sel : 3; /* [7:5] */
        u32 cnt5_src_sel : 5;   /* [12:8] */
        u32 cnt5_event_sel : 3; /* [15:13] */
        u32 cnt_enable : 6;     /* [21:16] */
        u32 rsv_24 : 10;        /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_cnt_sel1_u;

/* Define the union csr_sm_abuf_counter0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_counter0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_counter0_u;

/* Define the union csr_sm_abuf_counter1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_counter1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_counter1_u;

/* Define the union csr_sm_abuf_counter2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_counter2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_counter2_u;

/* Define the union csr_sm_abuf_counter3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_counter3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_counter3_u;

/* Define the union csr_sm_abuf_counter4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_counter4 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_counter4_u;

/* Define the union csr_sm_abuf_counter5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sm_abuf_counter5 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_counter5_u;

/* Define the union csr_sm_abuf_pfetch_flag_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_pfetch_flag_u;

/* Define the union csr_sm_abuf_ireq_list_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_ireq_list_sta_u;

/* Define the union csr_sm_abuf_tail_miss0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data : 63;  /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_sm_abuf_tail_miss0_u;

/* Define the union csr_sm_abuf_tail_miss1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 capture_data : 63;  /* [62:0] */
        u64 trigger_enable : 1; /* [63] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_sm_abuf_tail_miss1_u;

/* Define the union csr_sm_abuf_cnt_lifo_pfetch_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 ctp : 64; /* [63:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_sm_abuf_cnt_lifo_pfetch_0_u;

/* Define the union csr_sm_abuf_cnt_lifo_pfetch_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 ctp : 64; /* [63:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_sm_abuf_cnt_lifo_pfetch_1_u;

/* Define the union csr_sm_abuf_cnt_lifo_pfetch_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctp : 4; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_cnt_lifo_pfetch_2_u;

/* Define the union csr_sm_abuf_ecc_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 list_info_1b_ecc_inj_en : 1; /* [0] */
        u32 list_info_2b_ecc_inj_en : 1; /* [1] */
        u32 list_info_ecc_en : 1;        /* [2] */
        u32 rsv_25 : 1;                  /* [3] */
        u32 lifo_1b_ecc_inj_en : 1;      /* [4] */
        u32 lifo_2b_ecc_inj_en : 1;      /* [5] */
        u32 lifo_ecc_en : 1;             /* [6] */
        u32 rsv_26 : 1;                  /* [7] */
        u32 rsv_27 : 24;                 /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_ecc_cfg_u;

/* Define the union csr_sm_abuf_ecc_1b_err_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_ecc_1b_err_int_u;

/* Define the union csr_sm_abuf_ecc_2b_err_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sm_abuf_ecc_2b_err_int_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smeg0_abuf0_version_u smeg0_abuf0_version;               /* 0 */
    volatile csr_sm_abuf_th_grw_wm_0_u sm_abuf_th_grw_wm_0;               /* 4 */
    volatile csr_sm_abuf_th_grw_wm_1_u sm_abuf_th_grw_wm_1;               /* 8 */
    volatile csr_sm_abuf_th_grw_wm_2_u sm_abuf_th_grw_wm_2;               /* C */
    volatile csr_sm_abuf_th_grw_wm_3_u sm_abuf_th_grw_wm_3;               /* 10 */
    volatile csr_sm_abuf_th_grw_wm_4_u sm_abuf_th_grw_wm_4;               /* 14 */
    volatile csr_sm_abuf_th_grw_wm_5_u sm_abuf_th_grw_wm_5;               /* 18 */
    volatile csr_sm_abuf_th_grw_wm_6_u sm_abuf_th_grw_wm_6;               /* 1C */
    volatile csr_sm_abuf_th_shk_wm_0_u sm_abuf_th_shk_wm_0;               /* 20 */
    volatile csr_sm_abuf_th_shk_wm_1_u sm_abuf_th_shk_wm_1;               /* 24 */
    volatile csr_sm_abuf_th_shk_wm_2_u sm_abuf_th_shk_wm_2;               /* 28 */
    volatile csr_sm_abuf_th_shk_wm_3_u sm_abuf_th_shk_wm_3;               /* 2C */
    volatile csr_sm_abuf_th_shk_wm_4_u sm_abuf_th_shk_wm_4;               /* 30 */
    volatile csr_sm_abuf_th_shk_wm_5_u sm_abuf_th_shk_wm_5;               /* 34 */
    volatile csr_sm_abuf_th_shk_wm_6_u sm_abuf_th_shk_wm_6;               /* 38 */
    volatile csr_sm_abuf_flrc_attr_u sm_abuf_flrc_attr;                   /* 3C */
    volatile csr_sm_abuf_flrc_num_u sm_abuf_flrc_num;                     /* 40 */
    volatile csr_sm_abuf_flrc_bound_u_u sm_abuf_flrc_bound_u;             /* 44 */
    volatile csr_sm_abuf_flrc_bound_l_u sm_abuf_flrc_bound_l;             /* 48 */
    volatile csr_sm_abuf_pf_lifo_clr_u sm_abuf_pf_lifo_clr;               /* 4C */
    volatile csr_sm_abuf_mem_cfg_u sm_abuf_mem_cfg;                       /* 50 */
    volatile csr_sm_abuf_int_vector_u sm_abuf_int_vector;                 /* 54 */
    volatile csr_sm_abuf_int_u sm_abuf_int;                               /* 58 */
    volatile csr_sm_abuf_int_mask_u sm_abuf_int_mask;                     /* 5C */
    volatile csr_sm_abuf_pberr_u sm_abuf_pberr;                           /* 60 */
    volatile csr_sm_abuf_fl_uflow_err_u sm_abuf_fl_uflow_err;             /* 64 */
    volatile csr_sm_abuf_fl_oflow_err_u sm_abuf_fl_oflow_err;             /* 68 */
    volatile csr_sm_abuf_fl_tail_miss_err_u sm_abuf_fl_tail_miss_err;     /* 6C */
    volatile csr_smeg0_abuf_indrect_ctrl_u smeg0_abuf_indrect_ctrl;       /* 70 */
    volatile csr_smeg0_abuf_indrect_timeout_u smeg0_abuf_indrect_timeout; /* 74 */
    volatile csr_smeg0_abuf_indrect_data_u smeg0_abuf_indrect_data;       /* 78 */
    volatile csr_sm_abuf_dis_alloc_u sm_abuf_dis_alloc;                   /* 7C */
    volatile csr_sm_abuf_dis_de_alloc_u sm_abuf_dis_de_alloc;             /* 80 */
    volatile csr_sm_abuf_flrc_st_u sm_abuf_flrc_st;                       /* 84 */
    volatile csr_sm_abuf_empty_fl_u sm_abuf_empty_fl;                     /* 88 */
    volatile csr_sm_abuf_full_fl_u sm_abuf_full_fl;                       /* 8C */
    volatile csr_sm_abuf_st_wm_grow_u sm_abuf_st_wm_grow;                 /* 90 */
    volatile csr_sm_abuf_st_wm_shrink_u sm_abuf_st_wm_shrink;             /* 94 */
    volatile csr_sm_abuf_cnt_sel0_u sm_abuf_cnt_sel0;                     /* 98 */
    volatile csr_sm_abuf_cnt_sel1_u sm_abuf_cnt_sel1;                     /* 9C */
    volatile csr_sm_abuf_counter0_u sm_abuf_counter0;                     /* A0 */
    volatile csr_sm_abuf_counter1_u sm_abuf_counter1;                     /* A4 */
    volatile csr_sm_abuf_counter2_u sm_abuf_counter2;                     /* A8 */
    volatile csr_sm_abuf_counter3_u sm_abuf_counter3;                     /* AC */
    volatile csr_sm_abuf_counter4_u sm_abuf_counter4;                     /* B0 */
    volatile csr_sm_abuf_counter5_u sm_abuf_counter5;                     /* B4 */
    volatile csr_sm_abuf_pfetch_flag_u sm_abuf_pfetch_flag;               /* B8 */
    volatile csr_sm_abuf_ireq_list_sta_u sm_abuf_ireq_list_sta;           /* BC */
    volatile csr_sm_abuf_tail_miss0_u sm_abuf_tail_miss0;                 /* C0 */
    volatile csr_sm_abuf_tail_miss1_u sm_abuf_tail_miss1;                 /* C8 */
    volatile csr_sm_abuf_cnt_lifo_pfetch_0_u sm_abuf_cnt_lifo_pfetch_0;   /* D0 */
    volatile csr_sm_abuf_cnt_lifo_pfetch_1_u sm_abuf_cnt_lifo_pfetch_1;   /* D8 */
    volatile csr_sm_abuf_cnt_lifo_pfetch_2_u sm_abuf_cnt_lifo_pfetch_2;   /* E0 */
    volatile csr_sm_abuf_ecc_cfg_u sm_abuf_ecc_cfg;                       /* E4 */
    volatile csr_sm_abuf_ecc_1b_err_int_u sm_abuf_ecc_1b_err_int;         /* E8 */
    volatile csr_sm_abuf_ecc_2b_err_int_u sm_abuf_ecc_2b_err_int;         /* EC */
} S_smeg0_abuf0_csr_REGS_TYPE;

/* Declare the struct pointor of the module smeg0_abuf0_csr */
extern volatile S_smeg0_abuf0_csr_REGS_TYPE *gopsmeg0_abuf0_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMEG0_ABUF0_VERSION_smeg0_abuf0_version(unsigned int usmeg0_abuf0_version);
int iSetSM_ABUF_TH_GRW_WM_0_th_grow_0(unsigned int uth_grow_0);
int iSetSM_ABUF_TH_GRW_WM_1_th_grow_1(unsigned int uth_grow_1);
int iSetSM_ABUF_TH_GRW_WM_2_th_grow_2(unsigned int uth_grow_2);
int iSetSM_ABUF_TH_GRW_WM_3_th_grow_3(unsigned int uth_grow_3);
int iSetSM_ABUF_TH_GRW_WM_4_th_grow_4(unsigned int uth_grow_4);
int iSetSM_ABUF_TH_GRW_WM_5_th_grow_5(unsigned int uth_grow_5);
int iSetSM_ABUF_TH_GRW_WM_6_th_grow_6(unsigned int uth_grow_6);
int iSetSM_ABUF_TH_SHK_WM_0_th_shrink_0(unsigned int uth_shrink_0);
int iSetSM_ABUF_TH_SHK_WM_1_th_shrink_1(unsigned int uth_shrink_1);
int iSetSM_ABUF_TH_SHK_WM_2_th_shrink_2(unsigned int uth_shrink_2);
int iSetSM_ABUF_TH_SHK_WM_3_th_shrink_3(unsigned int uth_shrink_3);
int iSetSM_ABUF_TH_SHK_WM_4_th_shrink_4(unsigned int uth_shrink_4);
int iSetSM_ABUF_TH_SHK_WM_5_th_shrink_5(unsigned int uth_shrink_5);
int iSetSM_ABUF_TH_SHK_WM_6_th_shrink_6(unsigned int uth_shrink_6);
int iSetSM_ABUF_FLRC_ATTR_flid_torc(unsigned int uflid_torc);
int iSetSM_ABUF_FLRC_ATTR_en_rclm(unsigned int uen_rclm);
int iSetSM_ABUF_FLRC_ATTR_stop_rclm(unsigned int ustop_rclm);
int iSetSM_ABUF_FLRC_NUM_num_rclm(unsigned int unum_rclm);
int iSetSM_ABUF_FLRC_BOUND_U_sm_abuf_flrc_bound_u(unsigned int usm_abuf_flrc_bound_u);
int iSetSM_ABUF_FLRC_BOUND_L_sm_abuf_flrc_bound_l(unsigned int usm_abuf_flrc_bound_l);
int iSetSM_ABUF_PF_LIFO_CLR_sm_abuf_pf_lifo_clr(unsigned int usm_abuf_pf_lifo_clr);
int iSetSM_ABUF_MEM_CFG_lifo_pberr_gen(unsigned int ulifo_pberr_gen);
int iSetSM_ABUF_MEM_CFG_info_pberr_gen(unsigned int uinfo_pberr_gen);
int iSetSM_ABUF_MEM_CFG_ibuf_pberr_gen(unsigned int uibuf_pberr_gen);
int iSetSM_ABUF_MEM_CFG_ireq_pberr_gen(unsigned int uireq_pberr_gen);
int iSetSM_ABUF_MEM_CFG_pb_chk_en(unsigned int upb_chk_en);
int iSetSM_ABUF_MEM_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSM_ABUF_MEM_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSM_ABUF_MEM_CFG_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSM_ABUF_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSM_ABUF_INT_VECTOR_enable(unsigned int uenable);
int iSetSM_ABUF_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSM_ABUF_INT_int_data(unsigned int uint_data);
int iSetSM_ABUF_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSM_ABUF_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSM_ABUF_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSM_ABUF_PBERR_error_bit(unsigned int uerror_bit);
int iSetSM_ABUF_PBERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSM_ABUF_PBERR_sticky(unsigned int usticky);
int iSetSM_ABUF_FL_UFLOW_ERR_error_bit(unsigned int uerror_bit);
int iSetSM_ABUF_FL_UFLOW_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSM_ABUF_FL_UFLOW_ERR_sticky(unsigned int usticky);
int iSetSM_ABUF_FL_OFLOW_ERR_error_bit(unsigned int uerror_bit);
int iSetSM_ABUF_FL_OFLOW_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSM_ABUF_FL_OFLOW_ERR_sticky(unsigned int usticky);
int iSetSM_ABUF_FL_TAIL_MISS_ERR_error_bit(unsigned int uerror_bit);
int iSetSM_ABUF_FL_TAIL_MISS_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSM_ABUF_FL_TAIL_MISS_ERR_sticky(unsigned int usticky);
int iSetSMEG0_ABUF_INDRECT_CTRL_smeg0_abuf_indir_addr(unsigned int usmeg0_abuf_indir_addr);
int iSetSMEG0_ABUF_INDRECT_CTRL_smeg0_abuf_indir_tab(unsigned int usmeg0_abuf_indir_tab);
int iSetSMEG0_ABUF_INDRECT_CTRL_smeg0_abuf_indir_stat(unsigned int usmeg0_abuf_indir_stat);
int iSetSMEG0_ABUF_INDRECT_CTRL_smeg0_abuf_indir_mode(unsigned int usmeg0_abuf_indir_mode);
int iSetSMEG0_ABUF_INDRECT_CTRL_smeg0_abuf_indir_vld(unsigned int usmeg0_abuf_indir_vld);
int iSetSMEG0_ABUF_INDRECT_TIMEOUT_smeg0_abuf_indir_timeout(unsigned int usmeg0_abuf_indir_timeout);
int iSetSMEG0_ABUF_INDRECT_DATA_smeg0_abuf_indir_data(unsigned int usmeg0_abuf_indir_data);
int iSetSM_ABUF_DIS_ALLOC_sm_abuf_dis_alloc(unsigned int usm_abuf_dis_alloc);
int iSetSM_ABUF_DIS_DE_ALLOC_sm_abuf_dis_de_alloc(unsigned int usm_abuf_dis_de_alloc);
int iSetSM_ABUF_FLRC_ST_done_rclm(unsigned int udone_rclm);
int iSetSM_ABUF_FLRC_ST_rlist_cleaning(unsigned int urlist_cleaning);
int iSetSM_ABUF_FLRC_ST_wlist_cleaning(unsigned int uwlist_cleaning);
int iSetSM_ABUF_FLRC_ST_ctp(unsigned int uctp);
int iSetSM_ABUF_EMPTY_FL_ctp(unsigned int uctp);
int iSetSM_ABUF_FULL_FL_ctp(unsigned int uctp);
int iSetSM_ABUF_ST_WM_GROW_ctp(unsigned int uctp);
int iSetSM_ABUF_ST_WM_SHRINK_ctp(unsigned int uctp);
int iSetSM_ABUF_CNT_SEL0_cnt0_src_sel(unsigned int ucnt0_src_sel);
int iSetSM_ABUF_CNT_SEL0_cnt0_event_sel(unsigned int ucnt0_event_sel);
int iSetSM_ABUF_CNT_SEL0_cnt1_src_sel(unsigned int ucnt1_src_sel);
int iSetSM_ABUF_CNT_SEL0_cnt1_event_sel(unsigned int ucnt1_event_sel);
int iSetSM_ABUF_CNT_SEL0_cnt2_src_sel(unsigned int ucnt2_src_sel);
int iSetSM_ABUF_CNT_SEL0_cnt2_event_sel(unsigned int ucnt2_event_sel);
int iSetSM_ABUF_CNT_SEL0_cnt3_src_sel(unsigned int ucnt3_src_sel);
int iSetSM_ABUF_CNT_SEL0_cnt3_event_sel(unsigned int ucnt3_event_sel);
int iSetSM_ABUF_CNT_SEL1_cnt4_src_sel(unsigned int ucnt4_src_sel);
int iSetSM_ABUF_CNT_SEL1_cnt4_event_sel(unsigned int ucnt4_event_sel);
int iSetSM_ABUF_CNT_SEL1_cnt5_src_sel(unsigned int ucnt5_src_sel);
int iSetSM_ABUF_CNT_SEL1_cnt5_event_sel(unsigned int ucnt5_event_sel);
int iSetSM_ABUF_CNT_SEL1_cnt_enable(unsigned int ucnt_enable);
int iSetSM_ABUF_COUNTER0_sm_abuf_counter0(unsigned int usm_abuf_counter0);
int iSetSM_ABUF_COUNTER1_sm_abuf_counter1(unsigned int usm_abuf_counter1);
int iSetSM_ABUF_COUNTER2_sm_abuf_counter2(unsigned int usm_abuf_counter2);
int iSetSM_ABUF_COUNTER3_sm_abuf_counter3(unsigned int usm_abuf_counter3);
int iSetSM_ABUF_COUNTER4_sm_abuf_counter4(unsigned int usm_abuf_counter4);
int iSetSM_ABUF_COUNTER5_sm_abuf_counter5(unsigned int usm_abuf_counter5);
int iSetSM_ABUF_PFETCH_FLAG_ctp(unsigned int uctp);
int iSetSM_ABUF_IREQ_LIST_STA_ctp(unsigned int uctp);
int iSetSM_ABUF_TAIL_MISS0_capture_data(unsigned int ucapture_data);
int iSetSM_ABUF_TAIL_MISS0_trigger_enable(unsigned int utrigger_enable);
int iSetSM_ABUF_TAIL_MISS1_capture_data(unsigned int ucapture_data);
int iSetSM_ABUF_TAIL_MISS1_trigger_enable(unsigned int utrigger_enable);
int iSetSM_ABUF_CNT_LIFO_PFETCH_0_ctp(unsigned int uctp);
int iSetSM_ABUF_CNT_LIFO_PFETCH_1_ctp(unsigned int uctp);
int iSetSM_ABUF_CNT_LIFO_PFETCH_2_ctp(unsigned int uctp);
int iSetSM_ABUF_ECC_CFG_list_info_1b_ecc_inj_en(unsigned int ulist_info_1b_ecc_inj_en);
int iSetSM_ABUF_ECC_CFG_list_info_2b_ecc_inj_en(unsigned int ulist_info_2b_ecc_inj_en);
int iSetSM_ABUF_ECC_CFG_list_info_ecc_en(unsigned int ulist_info_ecc_en);
int iSetSM_ABUF_ECC_CFG_lifo_1b_ecc_inj_en(unsigned int ulifo_1b_ecc_inj_en);
int iSetSM_ABUF_ECC_CFG_lifo_2b_ecc_inj_en(unsigned int ulifo_2b_ecc_inj_en);
int iSetSM_ABUF_ECC_CFG_lifo_ecc_en(unsigned int ulifo_ecc_en);
int iSetSM_ABUF_ECC_1B_ERR_INT_error_bit(unsigned int uerror_bit);
int iSetSM_ABUF_ECC_1B_ERR_INT_multi_error_bit(unsigned int umulti_error_bit);
int iSetSM_ABUF_ECC_1B_ERR_INT_sticky(unsigned int usticky);
int iSetSM_ABUF_ECC_2B_ERR_INT_error_bit(unsigned int uerror_bit);
int iSetSM_ABUF_ECC_2B_ERR_INT_multi_error_bit(unsigned int umulti_error_bit);
int iSetSM_ABUF_ECC_2B_ERR_INT_sticky(unsigned int usticky);

/* Define the union csr_smeg0_aget_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_aget_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_version_u;

/* Define the union csr_smeg0_aget_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_chk_en : 1;               /* [0] */
        u32 rsv_0 : 7;                    /* [7:1] */
        u32 sp_ram_tmod : 7;              /* [14:8] */
        u32 mem_ret1n : 1;                /* [15] */
        u32 smeg_core_mem_init_start : 1; /* [16] */
        u32 smeg0_cnt0_cfg : 2;           /* [18:17] */
        u32 smeg0_cnt1_cfg : 2;           /* [20:19] */
        u32 rsv_1 : 11;                   /* [31:21] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_cfg_u;

/* Define the union csr_smeg0_aget_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_2 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_3 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_int_vector_u;

/* Define the union csr_smeg0_aget_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 2;        /* [1:0] */
        u32 rsv_4 : 14;          /* [15:2] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_int_u;

/* Define the union csr_smeg0_aget_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 2;        /* [1:0] */
        u32 rsv_5 : 14;          /* [15:2] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_int_mask_u;

/* Define the union csr_smeg0_aget_mem_prty_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_mem_prty_err_u;

/* Define the union csr_smeg0_aget_boundary_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_boundary_err_u;

/* Define the union csr_smeg0_aget_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_aget_indir_addr : 24; /* [23:0] */
        u32 smeg0_aget_indir_tab : 4;   /* [27:24] */
        u32 smeg0_aget_indir_stat : 2;  /* [29:28] */
        u32 smeg0_aget_indir_mode : 1;  /* [30] */
        u32 smeg0_aget_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_indrect_ctrl_u;

/* Define the union csr_smeg0_aget_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_aget_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_indrect_timeout_u;

/* Define the union csr_smeg0_aget_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_aget_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_aget_indrect_data_u;

/* Define the union csr_smeg_core_mem_init_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 done : 1; /* [0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg_core_mem_init_u;

/* Define the union csr_smeg0_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_cnt0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_cnt0_u;

/* Define the union csr_smeg0_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_cnt1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_cnt1_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smeg0_aget_version_u smeg0_aget_version;                 /* 0 */
    volatile csr_smeg0_aget_cfg_u smeg0_aget_cfg;                         /* 4 */
    volatile csr_smeg0_aget_int_vector_u smeg0_aget_int_vector;           /* 8 */
    volatile csr_smeg0_aget_int_u smeg0_aget_int;                         /* C */
    volatile csr_smeg0_aget_int_mask_u smeg0_aget_int_mask;               /* 10 */
    volatile csr_smeg0_aget_mem_prty_err_u smeg0_aget_mem_prty_err;       /* 14 */
    volatile csr_smeg0_aget_boundary_err_u smeg0_aget_boundary_err;       /* 18 */
    volatile csr_smeg0_aget_indrect_ctrl_u smeg0_aget_indrect_ctrl;       /* 1C */
    volatile csr_smeg0_aget_indrect_timeout_u smeg0_aget_indrect_timeout; /* 20 */
    volatile csr_smeg0_aget_indrect_data_u smeg0_aget_indrect_data;       /* 24 */
    volatile csr_smeg_core_mem_init_u smeg_core_mem_init;                 /* 28 */
    volatile csr_smeg0_cnt0_u smeg0_cnt0;                                 /* 2C */
    volatile csr_smeg0_cnt1_u smeg0_cnt1;                                 /* 30 */
} S_smeg0_aget_csr_REGS_TYPE;

/* Declare the struct pointor of the module smeg0_aget_csr */
extern volatile S_smeg0_aget_csr_REGS_TYPE *gopsmeg0_aget_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMEG0_AGET_VERSION_smeg0_aget_version(unsigned int usmeg0_aget_version);
int iSetSMEG0_AGET_CFG_mem_chk_en(unsigned int umem_chk_en);
int iSetSMEG0_AGET_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMEG0_AGET_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSMEG0_AGET_CFG_smeg_core_mem_init_start(unsigned int usmeg_core_mem_init_start);
int iSetSMEG0_AGET_CFG_smeg0_cnt0_cfg(unsigned int usmeg0_cnt0_cfg);
int iSetSMEG0_AGET_CFG_smeg0_cnt1_cfg(unsigned int usmeg0_cnt1_cfg);
int iSetSMEG0_AGET_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMEG0_AGET_INT_VECTOR_enable(unsigned int uenable);
int iSetSMEG0_AGET_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMEG0_AGET_INT_int_data(unsigned int uint_data);
int iSetSMEG0_AGET_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMEG0_AGET_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMEG0_AGET_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMEG0_AGET_MEM_PRTY_ERR_err(unsigned int uerr);
int iSetSMEG0_AGET_MEM_PRTY_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_AGET_MEM_PRTY_ERR_sticky(unsigned int usticky);
int iSetSMEG0_AGET_BOUNDARY_ERR_err(unsigned int uerr);
int iSetSMEG0_AGET_BOUNDARY_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_AGET_BOUNDARY_ERR_sticky(unsigned int usticky);
int iSetSMEG0_AGET_INDRECT_CTRL_smeg0_aget_indir_addr(unsigned int usmeg0_aget_indir_addr);
int iSetSMEG0_AGET_INDRECT_CTRL_smeg0_aget_indir_tab(unsigned int usmeg0_aget_indir_tab);
int iSetSMEG0_AGET_INDRECT_CTRL_smeg0_aget_indir_stat(unsigned int usmeg0_aget_indir_stat);
int iSetSMEG0_AGET_INDRECT_CTRL_smeg0_aget_indir_mode(unsigned int usmeg0_aget_indir_mode);
int iSetSMEG0_AGET_INDRECT_CTRL_smeg0_aget_indir_vld(unsigned int usmeg0_aget_indir_vld);
int iSetSMEG0_AGET_INDRECT_TIMEOUT_smeg0_aget_indir_timeout(unsigned int usmeg0_aget_indir_timeout);
int iSetSMEG0_AGET_INDRECT_DATA_smeg0_aget_indir_data(unsigned int usmeg0_aget_indir_data);
int iSetSMEG_CORE_MEM_INIT_done(unsigned int udone);
int iSetSMEG0_CNT0_smeg0_cnt0(unsigned int usmeg0_cnt0);
int iSetSMEG0_CNT1_smeg0_cnt1(unsigned int usmeg0_cnt1);

/* Define the union csr_smeg0_lu_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_version_u;

/* Define the union csr_smeg0_lu_chk_enable_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_0 : 1;                /* [0] */
        u32 flit_fifo_chk_enable : 1; /* [1] */
        u32 pipe1_mem_chk_enable : 1; /* [2] */
        u32 pipe0_mem_chk_enable : 1; /* [3] */
        u32 rsv_1 : 4;                /* [7:4] */
        u32 tp_ram_tmod : 8;          /* [15:8] */
        u32 sp_ram_tmod : 7;          /* [22:16] */
        u32 mem_ret1n : 1;            /* [23] */
        u32 rsv_2 : 8;                /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_chk_enable_cfg_u;

/* Define the union csr_smeg0_lu_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_3 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_4 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_int_vector_u;

/* Define the union csr_smeg0_lu_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 7;        /* [6:0] */
        u32 rsv_5 : 9;           /* [15:7] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_int_u;

/* Define the union csr_smeg0_lu_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 7;        /* [6:0] */
        u32 rsv_6 : 9;           /* [15:7] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_int_mask_u;

/* Define the union csr_smeg0_lu_pipe0_mem_ecc_crt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_pipe0_mem_ecc_crt_err_u;

/* Define the union csr_smeg0_lu_pipe0_mem_ecc_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_pipe0_mem_ecc_uncrt_err_u;

/* Define the union csr_smeg0_lu_pipe1_mem_ecc_crt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_pipe1_mem_ecc_crt_err_u;

/* Define the union csr_smeg0_lu_pipe1_mem_ecc_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_pipe1_mem_ecc_uncrt_err_u;

/* Define the union csr_smeg0_lu_flitfifo_mem_ecc_crt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_flitfifo_mem_ecc_crt_err_u;

/* Define the union csr_smeg0_lu_flitfifo_mem_ecc_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_flitfifo_mem_ecc_uncrt_err_u;

/* Define the union csr_smeg0_lu_sw_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err : 1;       /* [0] */
        u32 multi_err : 1; /* [1] */
        u32 sticky : 30;   /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_sw_err_u;

/* Define the union csr_smeg0_lu_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_indir_addr : 24; /* [23:0] */
        u32 smeg0_lu_indir_tab : 4;   /* [27:24] */
        u32 smeg0_lu_indir_stat : 2;  /* [29:28] */
        u32 smeg0_lu_indir_mode : 1;  /* [30] */
        u32 smeg0_lu_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_indrect_ctrl_u;

/* Define the union csr_smeg0_lu_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_indrect_timeout_u;

/* Define the union csr_smeg0_lu_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_indrect_data_u;

/* Define the union csr_smeg0_lu_err_inj_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pipe0_crt_err_inj_req : 1;   /* [0] */
        u32 pipe0_uncrt_err_inj_req : 1; /* [1] */
        u32 pipe1_crt_err_inj_req : 1;   /* [2] */
        u32 pipe1_uncrt_err_inj_req : 1; /* [3] */
        u32 flitf_crt_err_inj_req : 1;   /* [4] */
        u32 flitf_uncrt_err_inj_req : 1; /* [5] */
        u32 rsv_7 : 26;                  /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_err_inj_cfg_u;

/* Define the union csr_smeg0_lu_cnt_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt_enable : 4;     /* [3:0] */
        u32 cnt0_event_sel : 1; /* [4] */
        u32 cnt1_event_sel : 1; /* [5] */
        u32 cnt2_event_sel : 1; /* [6] */
        u32 cnt3_event_sel : 1; /* [7] */
        u32 eng_event_grp : 3;  /* [10:8] */
        u32 rsv_8 : 21;         /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_cnt_cfg_u;

/* Define the union csr_smeg0_lu_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_cnt0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_cnt0_u;

/* Define the union csr_smeg0_lu_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_cnt1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_cnt1_u;

/* Define the union csr_smeg0_lu_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_cnt2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_cnt2_u;

/* Define the union csr_smeg0_lu_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg0_lu_cnt3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_cnt3_u;

/* Define the union csr_smeg0_lu_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 num_in_result_fifo : 5;   /* [4:0] */
        u32 num_in_original_fifo : 5; /* [9:5] */
        u32 rsv_9 : 22;               /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg0_lu_ctp_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smeg0_lu_version_u smeg0_lu_version;                                       /* 0 */
    volatile csr_smeg0_lu_chk_enable_cfg_u smeg0_lu_chk_enable_cfg;                         /* 4 */
    volatile csr_smeg0_lu_int_vector_u smeg0_lu_int_vector;                                 /* 8 */
    volatile csr_smeg0_lu_int_u smeg0_lu_int;                                               /* C */
    volatile csr_smeg0_lu_int_mask_u smeg0_lu_int_mask;                                     /* 10 */
    volatile csr_smeg0_lu_pipe0_mem_ecc_crt_err_u smeg0_lu_pipe0_mem_ecc_crt_err;           /* 14 */
    volatile csr_smeg0_lu_pipe0_mem_ecc_uncrt_err_u smeg0_lu_pipe0_mem_ecc_uncrt_err;       /* 18 */
    volatile csr_smeg0_lu_pipe1_mem_ecc_crt_err_u smeg0_lu_pipe1_mem_ecc_crt_err;           /* 1C */
    volatile csr_smeg0_lu_pipe1_mem_ecc_uncrt_err_u smeg0_lu_pipe1_mem_ecc_uncrt_err;       /* 20 */
    volatile csr_smeg0_lu_flitfifo_mem_ecc_crt_err_u smeg0_lu_flitfifo_mem_ecc_crt_err;     /* 24 */
    volatile csr_smeg0_lu_flitfifo_mem_ecc_uncrt_err_u smeg0_lu_flitfifo_mem_ecc_uncrt_err; /* 28 */
    volatile csr_smeg0_lu_sw_err_u smeg0_lu_sw_err;                                         /* 2C */
    volatile csr_smeg0_lu_indrect_ctrl_u smeg0_lu_indrect_ctrl;                             /* 30 */
    volatile csr_smeg0_lu_indrect_timeout_u smeg0_lu_indrect_timeout;                       /* 34 */
    volatile csr_smeg0_lu_indrect_data_u smeg0_lu_indrect_data;                             /* 38 */
    volatile csr_smeg0_lu_err_inj_cfg_u smeg0_lu_err_inj_cfg;                               /* 3C */
    volatile csr_smeg0_lu_cnt_cfg_u smeg0_lu_cnt_cfg;                                       /* 40 */
    volatile csr_smeg0_lu_cnt0_u smeg0_lu_cnt0;                                             /* 44 */
    volatile csr_smeg0_lu_cnt1_u smeg0_lu_cnt1;                                             /* 48 */
    volatile csr_smeg0_lu_cnt2_u smeg0_lu_cnt2;                                             /* 4C */
    volatile csr_smeg0_lu_cnt3_u smeg0_lu_cnt3;                                             /* 50 */
    volatile csr_smeg0_lu_ctp_u smeg0_lu_ctp;                                               /* 54 */
} S_smeg0_lu_csr_REGS_TYPE;

/* Declare the struct pointor of the module smeg0_lu_csr */
extern volatile S_smeg0_lu_csr_REGS_TYPE *gopsmeg0_lu_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMEG0_LU_VERSION_smeg0_lu_version(unsigned int usmeg0_lu_version);
int iSetSMEG0_LU_CHK_ENABLE_CFG_flit_fifo_chk_enable(unsigned int uflit_fifo_chk_enable);
int iSetSMEG0_LU_CHK_ENABLE_CFG_pipe1_mem_chk_enable(unsigned int upipe1_mem_chk_enable);
int iSetSMEG0_LU_CHK_ENABLE_CFG_pipe0_mem_chk_enable(unsigned int upipe0_mem_chk_enable);
int iSetSMEG0_LU_CHK_ENABLE_CFG_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSMEG0_LU_CHK_ENABLE_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMEG0_LU_CHK_ENABLE_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSMEG0_LU_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMEG0_LU_INT_VECTOR_enable(unsigned int uenable);
int iSetSMEG0_LU_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMEG0_LU_INT_int_data(unsigned int uint_data);
int iSetSMEG0_LU_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMEG0_LU_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMEG0_LU_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMEG0_LU_PIPE0_MEM_ECC_CRT_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_PIPE0_MEM_ECC_CRT_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_PIPE0_MEM_ECC_CRT_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_PIPE0_MEM_ECC_UNCRT_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_PIPE0_MEM_ECC_UNCRT_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_PIPE0_MEM_ECC_UNCRT_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_PIPE1_MEM_ECC_CRT_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_PIPE1_MEM_ECC_CRT_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_PIPE1_MEM_ECC_CRT_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_PIPE1_MEM_ECC_UNCRT_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_PIPE1_MEM_ECC_UNCRT_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_PIPE1_MEM_ECC_UNCRT_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_FLITFIFO_MEM_ECC_CRT_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_FLITFIFO_MEM_ECC_CRT_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_FLITFIFO_MEM_ECC_CRT_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_FLITFIFO_MEM_ECC_UNCRT_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_FLITFIFO_MEM_ECC_UNCRT_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_FLITFIFO_MEM_ECC_UNCRT_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_SW_ERR_err(unsigned int uerr);
int iSetSMEG0_LU_SW_ERR_multi_err(unsigned int umulti_err);
int iSetSMEG0_LU_SW_ERR_sticky(unsigned int usticky);
int iSetSMEG0_LU_INDRECT_CTRL_smeg0_lu_indir_addr(unsigned int usmeg0_lu_indir_addr);
int iSetSMEG0_LU_INDRECT_CTRL_smeg0_lu_indir_tab(unsigned int usmeg0_lu_indir_tab);
int iSetSMEG0_LU_INDRECT_CTRL_smeg0_lu_indir_stat(unsigned int usmeg0_lu_indir_stat);
int iSetSMEG0_LU_INDRECT_CTRL_smeg0_lu_indir_mode(unsigned int usmeg0_lu_indir_mode);
int iSetSMEG0_LU_INDRECT_CTRL_smeg0_lu_indir_vld(unsigned int usmeg0_lu_indir_vld);
int iSetSMEG0_LU_INDRECT_TIMEOUT_smeg0_lu_indir_timeout(unsigned int usmeg0_lu_indir_timeout);
int iSetSMEG0_LU_INDRECT_DATA_smeg0_lu_indir_data(unsigned int usmeg0_lu_indir_data);
int iSetSMEG0_LU_ERR_INJ_CFG_pipe0_crt_err_inj_req(unsigned int upipe0_crt_err_inj_req);
int iSetSMEG0_LU_ERR_INJ_CFG_pipe0_uncrt_err_inj_req(unsigned int upipe0_uncrt_err_inj_req);
int iSetSMEG0_LU_ERR_INJ_CFG_pipe1_crt_err_inj_req(unsigned int upipe1_crt_err_inj_req);
int iSetSMEG0_LU_ERR_INJ_CFG_pipe1_uncrt_err_inj_req(unsigned int upipe1_uncrt_err_inj_req);
int iSetSMEG0_LU_ERR_INJ_CFG_flitf_crt_err_inj_req(unsigned int uflitf_crt_err_inj_req);
int iSetSMEG0_LU_ERR_INJ_CFG_flitf_uncrt_err_inj_req(unsigned int uflitf_uncrt_err_inj_req);
int iSetSMEG0_LU_CNT_CFG_cnt_enable(unsigned int ucnt_enable);
int iSetSMEG0_LU_CNT_CFG_cnt0_event_sel(unsigned int ucnt0_event_sel);
int iSetSMEG0_LU_CNT_CFG_cnt1_event_sel(unsigned int ucnt1_event_sel);
int iSetSMEG0_LU_CNT_CFG_cnt2_event_sel(unsigned int ucnt2_event_sel);
int iSetSMEG0_LU_CNT_CFG_cnt3_event_sel(unsigned int ucnt3_event_sel);
int iSetSMEG0_LU_CNT_CFG_eng_event_grp(unsigned int ueng_event_grp);
int iSetSMEG0_LU_CNT0_smeg0_lu_cnt0(unsigned int usmeg0_lu_cnt0);
int iSetSMEG0_LU_CNT1_smeg0_lu_cnt1(unsigned int usmeg0_lu_cnt1);
int iSetSMEG0_LU_CNT2_smeg0_lu_cnt2(unsigned int usmeg0_lu_cnt2);
int iSetSMEG0_LU_CNT3_smeg0_lu_cnt3(unsigned int usmeg0_lu_cnt3);
int iSetSMEG0_LU_CTP_num_in_result_fifo(unsigned int unum_in_result_fifo);
int iSetSMEG0_LU_CTP_num_in_original_fifo(unsigned int unum_in_original_fifo);

/* Define the union csr_smeg1_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_version_u;

/* Define the union csr_smeg1_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 detect_runaway_thread : 1;  /* [0] */
        u32 preload_fairness : 1;       /* [1] */
        u32 premem_count : 4;           /* [5:2] */
        u32 halt_sw_err : 1;            /* [6] */
        u32 halt_on_ebit : 1;           /* [7] */
        u32 halt_sw_err1 : 1;           /* [8] */
        u32 ctp_active_bits : 1;        /* [9] */
        u32 halt_on_runaway_err : 1;    /* [10] */
        u32 tcd_thd_id : 6;             /* [16:11] */
        u32 msb_thread_cfg : 1;         /* [17] */
        u32 mem_chk_en : 1;             /* [18] */
        u32 rp_inlld_ll_ivld_en : 1;    /* [19] */
        u32 bt_inst_id : 6;             /* [25:20] */
        u32 rp_halt_thread_max_num : 6; /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_cfg0_u;

/* Define the union csr_smeg1_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tp_ram_tmod : 8;            /* [7:0] */
        u32 sp_ram_tmod : 7;            /* [14:8] */
        u32 mem_ret1n : 1;              /* [15] */
        u32 rp_crt_err_inj_req : 1;     /* [16] */
        u32 rp_uncrt_err_inj_req : 1;   /* [17] */
        u32 fidr_crt_err_inj_req : 1;   /* [18] */
        u32 fidr_uncrt_err_inj_req : 1; /* [19] */
        u32 rsv_0 : 12;                 /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_cfg1_u;

/* Define the union csr_smeg1_runaway_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_runaway_cfg : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_runaway_cfg_u;

/* Define the union csr_smeg1_thread_enable_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_thread_enable_cfg : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_thread_enable_cfg_u;

/* Define the union csr_smeg1_tm_ts_fast2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_ts_fast2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_ts_fast2_u;

/* Define the union csr_smeg1_tm_ts_fast3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_ts_fast3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_ts_fast3_u;

/* Define the union csr_smeg1_tm_ts_slow0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_ts_slow0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_ts_slow0_u;

/* Define the union csr_smeg1_tm_ts_slow1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_ts_slow1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_ts_slow1_u;

/* Define the union csr_smeg1_tm_tmt_cfg7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt28 : 8; /* [7:0] */
        u32 smeg1_tm_tmt29 : 8; /* [15:8] */
        u32 smeg1_tm_tmt30 : 8; /* [23:16] */
        u32 smeg1_tm_tmt31 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg7_u;

/* Define the union csr_smeg1_tm_tmt_cfg6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt24 : 8; /* [7:0] */
        u32 smeg1_tm_tmt25 : 8; /* [15:8] */
        u32 smeg1_tm_tmt26 : 8; /* [23:16] */
        u32 smeg1_tm_tmt27 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg6_u;

/* Define the union csr_smeg1_tm_tmt_cfg5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt20 : 8; /* [7:0] */
        u32 smeg1_tm_tmt21 : 8; /* [15:8] */
        u32 smeg1_tm_tmt22 : 8; /* [23:16] */
        u32 smeg1_tm_tmt23 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg5_u;

/* Define the union csr_smeg1_tm_tmt_cfg4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt16 : 8; /* [7:0] */
        u32 smeg1_tm_tmt17 : 8; /* [15:8] */
        u32 smeg1_tm_tmt18 : 8; /* [23:16] */
        u32 smeg1_tm_tmt19 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg4_u;

/* Define the union csr_smeg1_tm_tmt_cfg3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt12 : 8; /* [7:0] */
        u32 smeg1_tm_tmt13 : 8; /* [15:8] */
        u32 smeg1_tm_tmt14 : 8; /* [23:16] */
        u32 smeg1_tm_tmt15 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg3_u;

/* Define the union csr_smeg1_tm_tmt_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt8 : 8;  /* [7:0] */
        u32 smeg1_tm_tmt9 : 8;  /* [15:8] */
        u32 smeg1_tm_tmt10 : 8; /* [23:16] */
        u32 smeg1_tm_tmt11 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg2_u;

/* Define the union csr_smeg1_tm_tmt_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt4 : 8; /* [7:0] */
        u32 smeg1_tm_tmt5 : 8; /* [15:8] */
        u32 smeg1_tm_tmt6 : 8; /* [23:16] */
        u32 smeg1_tm_tmt7 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg1_u;

/* Define the union csr_smeg1_tm_tmt_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tm_tmt0 : 8; /* [7:0] */
        u32 smeg1_tm_tmt1 : 8; /* [15:8] */
        u32 smeg1_tm_tmt2 : 8; /* [23:16] */
        u32 smeg1_tm_tmt3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tm_tmt_cfg0_u;

/* Define the union csr_smeg1_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_1 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_2 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_int_vector_u;

/* Define the union csr_smeg1_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 3;        /* [2:0] */
        u32 rsv_3 : 13;          /* [15:3] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_int_u;

/* Define the union csr_smeg1_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 3;        /* [2:0] */
        u32 rsv_4 : 13;          /* [15:3] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_int_mask_u;

/* Define the union csr_smeg1_engine_sw_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_engine_sw_err_u;

/* Define the union csr_smeg1_err0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_crt_err0 : 1;  /* [0] */
        u32 ecc_crt_merr0 : 1; /* [1] */
        u32 ecc_crt_err1 : 1;  /* [2] */
        u32 ecc_crt_merr1 : 1; /* [3] */
        u32 ecc_crt_err2 : 1;  /* [4] */
        u32 ecc_crt_merr2 : 1; /* [5] */
        u32 ecc_crt_err3 : 1;  /* [6] */
        u32 ecc_crt_merr3 : 1; /* [7] */
        u32 ecc_crt_err4 : 1;  /* [8] */
        u32 ecc_crt_merr4 : 1; /* [9] */
        u32 ecc_crt_err5 : 1;  /* [10] */
        u32 ecc_crt_merr5 : 1; /* [11] */
        u32 ecc_crt_err6 : 1;  /* [12] */
        u32 ecc_crt_merr6 : 1; /* [13] */
        u32 ecc_crt_err7 : 1;  /* [14] */
        u32 ecc_crt_merr7 : 1; /* [15] */
        u32 runaway_err : 1;   /* [16] */
        u32 runaway_merr : 1;  /* [17] */
        u32 ecc_crt_err8 : 1;  /* [18] */
        u32 ecc_crt_merr8 : 1; /* [19] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_err0_u;

/* Define the union csr_smeg1_err0_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_crt_err_mask0 : 1; /* [0] */
        u32 ecc_crt_err_mask1 : 1; /* [1] */
        u32 ecc_crt_err_mask2 : 1; /* [2] */
        u32 ecc_crt_err_mask3 : 1; /* [3] */
        u32 ecc_crt_err_mask4 : 1; /* [4] */
        u32 ecc_crt_err_mask5 : 1; /* [5] */
        u32 ecc_crt_err_mask6 : 1; /* [6] */
        u32 ecc_crt_err_mask7 : 1; /* [7] */
        u32 runaway_err_mask : 1;  /* [8] */
        u32 ecc_crt_err_mask8 : 1; /* [9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_err0_mask_u;

/* Define the union csr_smeg1_err1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_uncrt_err0 : 1;  /* [0] */
        u32 ecc_uncrt_merr0 : 1; /* [1] */
        u32 ecc_uncrt_err1 : 1;  /* [2] */
        u32 ecc_uncrt_merr1 : 1; /* [3] */
        u32 ecc_uncrt_err2 : 1;  /* [4] */
        u32 ecc_uncrt_merr2 : 1; /* [5] */
        u32 ecc_uncrt_err3 : 1;  /* [6] */
        u32 ecc_uncrt_merr3 : 1; /* [7] */
        u32 ecc_uncrt_err4 : 1;  /* [8] */
        u32 ecc_uncrt_merr4 : 1; /* [9] */
        u32 ecc_uncrt_err5 : 1;  /* [10] */
        u32 ecc_uncrt_merr5 : 1; /* [11] */
        u32 ecc_uncrt_err6 : 1;  /* [12] */
        u32 ecc_uncrt_merr6 : 1; /* [13] */
        u32 ecc_uncrt_err7 : 1;  /* [14] */
        u32 ecc_uncrt_merr7 : 1; /* [15] */
        u32 ecc_uncrt_err8 : 1;  /* [16] */
        u32 ecc_uncrt_merr8 : 1; /* [17] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_err1_u;

/* Define the union csr_smeg1_err1_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_uncrt_err_mask0 : 1; /* [0] */
        u32 ecc_uncrt_err_mask1 : 1; /* [1] */
        u32 ecc_uncrt_err_mask2 : 1; /* [2] */
        u32 ecc_uncrt_err_mask3 : 1; /* [3] */
        u32 ecc_uncrt_err_mask4 : 1; /* [4] */
        u32 ecc_uncrt_err_mask5 : 1; /* [5] */
        u32 ecc_uncrt_err_mask6 : 1; /* [6] */
        u32 ecc_uncrt_err_mask7 : 1; /* [7] */
        u32 ecc_uncrt_err_mask8 : 1; /* [8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_err1_mask_u;

/* Define the union csr_smeg1_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_indir_addr : 24; /* [23:0] */
        u32 smeg1_indir_tab : 4;   /* [27:24] */
        u32 smeg1_indir_stat : 2;  /* [29:28] */
        u32 smeg1_indir_mode : 1;  /* [30] */
        u32 smeg1_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_indrect_ctrl_u;

/* Define the union csr_smeg1_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_indrect_timeout_u;

/* Define the union csr_smeg1_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_indrect_data_u;

/* Define the union csr_smeg1_cnt_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_enable : 1;   /* [0] */
        u32 cnt1_enable : 1;   /* [1] */
        u32 cnt2_enable : 1;   /* [2] */
        u32 cnt3_enable : 1;   /* [3] */
        u32 cnt0_match_en : 1; /* [4] */
        u32 cnt1_match_en : 1; /* [5] */
        u32 cnt2_match_en : 1; /* [6] */
        u32 cnt3_match_en : 1; /* [7] */
        u32 cnt0_sel : 1;      /* [8] */
        u32 cnt1_sel : 2;      /* [10:9] */
        u32 cnt2_sel : 1;      /* [11] */
        u32 cnt3_sel : 1;      /* [12] */
        u32 rsv_5 : 19;        /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_cnt_cfg_u;

/* Define the union csr_smeg1_cnt_match_id_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_match_id : 6; /* [5:0] */
        u32 cnt1_match_id : 6; /* [11:6] */
        u32 cnt2_match_id : 6; /* [17:12] */
        u32 cnt3_match_id : 6; /* [23:18] */
        u32 rsv_6 : 8;         /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_cnt_match_id_u;

/* Define the union csr_smeg1_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smeg1_cnt0 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_cnt0_u;

/* Define the union csr_smeg1_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smeg1_cnt1 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_cnt1_u;

/* Define the union csr_smeg1_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smeg1_cnt2 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_cnt2_u;

/* Define the union csr_smeg1_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smeg1_cnt3 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_cnt3_u;

/* Define the union csr_rsv_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_7 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_1_u;

/* Define the union csr_rsv_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_8 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_2_u;

/* Define the union csr_smeg1_thread_enable_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_thread_enable_cfg2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_thread_enable_cfg2_u;

/* Define the union csr_rsv_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_9 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_3_u;

/* Define the union csr_rsv_4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_10 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_4_u;

/* Define the union csr_rsv_5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_11 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_5_u;

/* Define the union csr_rsv_6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_12 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_6_u;

/* Define the union csr_smeg1_tmt_ext_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smeg1_tmt_ext_cfg : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_tmt_ext_cfg_u;

/* Define the union csr_smeg1_mem_ecc_err_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 flag : 9;   /* [8:0] */
        u32 rsv_13 : 7; /* [15:9] */
        u32 addr : 7;   /* [22:16] */
        u32 rsv_14 : 9; /* [31:23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_mem_ecc_err_ctp_u;

/* Define the union csr_smmc_cache_resource_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sq_cnt : 14; /* [13:0] */
        u32 rsv_15 : 2;  /* [15:14] */
        u32 rq_cnt : 14; /* [29:16] */
        u32 rsv_16 : 2;  /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_cache_resource_ctp_u;

/* Define the union csr_smeg1_sync_api_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 snapshot_eng_id : 5;    /* [4:0] */
        u32 snapshot_eng_en : 1;    /* [5] */
        u32 rsv_17 : 2;             /* [7:6] */
        u32 sync_cnt_threshold : 2; /* [9:8] */
        u32 rsv_18 : 22;            /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_sync_api_cfg_u;

/* Define the union csr_rsv_183_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_19 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_183_u;

/* Define the union csr_smeg1_cur_timestamp_us_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 ctp : 49; /* [48:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_cur_timestamp_us_u;

/* Define the union csr_smeg1_runaway_thd_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 ctp : 64; /* [63:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_runaway_thd_ctp_u;

/* Define the union csr_smeg1_ctp0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 active_runaway_thd : 64; /* [63:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_ctp0_u;

/* Define the union csr_smeg1_ctp1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smeg1_internal : 44; /* [43:0] */
        u64 rsv_20 : 20;         /* [63:44] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_ctp1_u;

/* Define the union csr_smeg1_ctp2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 wt_runaway : 64; /* [63:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smeg1_ctp2_u;

/* Define the union csr_smeg1_ctp3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tcd : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smeg1_ctp3_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smeg1_version_u smeg1_version;                       /* 0 */
    volatile csr_smeg1_cfg0_u smeg1_cfg0;                             /* 4 */
    volatile csr_smeg1_cfg1_u smeg1_cfg1;                             /* 8 */
    volatile csr_smeg1_runaway_cfg_u smeg1_runaway_cfg;               /* C */
    volatile csr_smeg1_thread_enable_cfg_u smeg1_thread_enable_cfg;   /* 10 */
    volatile csr_smeg1_tm_ts_fast2_u smeg1_tm_ts_fast2;               /* 14 */
    volatile csr_smeg1_tm_ts_fast3_u smeg1_tm_ts_fast3;               /* 18 */
    volatile csr_smeg1_tm_ts_slow0_u smeg1_tm_ts_slow0;               /* 1C */
    volatile csr_smeg1_tm_ts_slow1_u smeg1_tm_ts_slow1;               /* 20 */
    volatile csr_smeg1_tm_tmt_cfg7_u smeg1_tm_tmt_cfg7;               /* 24 */
    volatile csr_smeg1_tm_tmt_cfg6_u smeg1_tm_tmt_cfg6;               /* 28 */
    volatile csr_smeg1_tm_tmt_cfg5_u smeg1_tm_tmt_cfg5;               /* 2C */
    volatile csr_smeg1_tm_tmt_cfg4_u smeg1_tm_tmt_cfg4;               /* 30 */
    volatile csr_smeg1_tm_tmt_cfg3_u smeg1_tm_tmt_cfg3;               /* 34 */
    volatile csr_smeg1_tm_tmt_cfg2_u smeg1_tm_tmt_cfg2;               /* 38 */
    volatile csr_smeg1_tm_tmt_cfg1_u smeg1_tm_tmt_cfg1;               /* 3C */
    volatile csr_smeg1_tm_tmt_cfg0_u smeg1_tm_tmt_cfg0;               /* 40 */
    volatile csr_smeg1_int_vector_u smeg1_int_vector;                 /* 44 */
    volatile csr_smeg1_int_u smeg1_int;                               /* 48 */
    volatile csr_smeg1_int_mask_u smeg1_int_mask;                     /* 4C */
    volatile csr_smeg1_engine_sw_err_u smeg1_engine_sw_err;           /* 50 */
    volatile csr_smeg1_err0_u smeg1_err0;                             /* 54 */
    volatile csr_smeg1_err0_mask_u smeg1_err0_mask;                   /* 58 */
    volatile csr_smeg1_err1_u smeg1_err1;                             /* 5C */
    volatile csr_smeg1_err1_mask_u smeg1_err1_mask;                   /* 60 */
    volatile csr_smeg1_indrect_ctrl_u smeg1_indrect_ctrl;             /* 64 */
    volatile csr_smeg1_indrect_timeout_u smeg1_indrect_timeout;       /* 68 */
    volatile csr_smeg1_indrect_data_u smeg1_indrect_data;             /* 6C */
    volatile csr_smeg1_cnt_cfg_u smeg1_cnt_cfg;                       /* 70 */
    volatile csr_smeg1_cnt_match_id_u smeg1_cnt_match_id;             /* 74 */
    volatile csr_smeg1_cnt0_u smeg1_cnt0;                             /* 78 */
    volatile csr_smeg1_cnt1_u smeg1_cnt1;                             /* 80 */
    volatile csr_smeg1_cnt2_u smeg1_cnt2;                             /* 88 */
    volatile csr_smeg1_cnt3_u smeg1_cnt3;                             /* 90 */
    volatile csr_rsv_1_u rsv_1;                                       /* 98 */
    volatile csr_rsv_2_u rsv_2;                                       /* 9C */
    volatile csr_smeg1_thread_enable_cfg2_u smeg1_thread_enable_cfg2; /* A0 */
    volatile csr_rsv_3_u rsv_3;                                       /* A4 */
    volatile csr_rsv_4_u rsv_4;                                       /* A8 */
    volatile csr_rsv_5_u rsv_5;                                       /* AC */
    volatile csr_rsv_6_u rsv_6;                                       /* B0 */
    volatile csr_smeg1_tmt_ext_cfg_u smeg1_tmt_ext_cfg;               /* B4 */
    volatile csr_smeg1_mem_ecc_err_ctp_u smeg1_mem_ecc_err_ctp;       /* B8 */
    volatile csr_smmc_cache_resource_ctp_u smmc_cache_resource_ctp;   /* BC */
    volatile csr_smeg1_sync_api_cfg_u smeg1_sync_api_cfg;             /* C0 */
    volatile csr_rsv_183_u rsv_183;                                   /* C4 */
    volatile csr_smeg1_cur_timestamp_us_u smeg1_cur_timestamp_us;     /* C8 */
    volatile csr_smeg1_runaway_thd_ctp_u smeg1_runaway_thd_ctp;       /* D0 */
    volatile csr_smeg1_ctp0_u smeg1_ctp0;                             /* D8 */
    volatile csr_smeg1_ctp1_u smeg1_ctp1;                             /* E0 */
    volatile csr_smeg1_ctp2_u smeg1_ctp2;                             /* E8 */
    volatile csr_smeg1_ctp3_u smeg1_ctp3;                             /* F0 */
} S_smeg1_csr_REGS_TYPE;

/* Declare the struct pointor of the module smeg1_csr */
extern volatile S_smeg1_csr_REGS_TYPE *gopsmeg1_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMEG1_VERSION_smeg1_version(unsigned int usmeg1_version);
int iSetSMEG1_CFG0_detect_runaway_thread(unsigned int udetect_runaway_thread);
int iSetSMEG1_CFG0_preload_fairness(unsigned int upreload_fairness);
int iSetSMEG1_CFG0_premem_count(unsigned int upremem_count);
int iSetSMEG1_CFG0_halt_sw_err(unsigned int uhalt_sw_err);
int iSetSMEG1_CFG0_halt_on_ebit(unsigned int uhalt_on_ebit);
int iSetSMEG1_CFG0_halt_sw_err1(unsigned int uhalt_sw_err1);
int iSetSMEG1_CFG0_ctp_active_bits(unsigned int uctp_active_bits);
int iSetSMEG1_CFG0_halt_on_runaway_err(unsigned int uhalt_on_runaway_err);
int iSetSMEG1_CFG0_tcd_thd_id(unsigned int utcd_thd_id);
int iSetSMEG1_CFG0_msb_thread_cfg(unsigned int umsb_thread_cfg);
int iSetSMEG1_CFG0_mem_chk_en(unsigned int umem_chk_en);
int iSetSMEG1_CFG0_rp_inlld_ll_ivld_en(unsigned int urp_inlld_ll_ivld_en);
int iSetSMEG1_CFG0_bt_inst_id(unsigned int ubt_inst_id);
int iSetSMEG1_CFG0_rp_halt_thread_max_num(unsigned int urp_halt_thread_max_num);
int iSetSMEG1_CFG1_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSMEG1_CFG1_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMEG1_CFG1_mem_ret1n(unsigned int umem_ret1n);
int iSetSMEG1_CFG1_rp_crt_err_inj_req(unsigned int urp_crt_err_inj_req);
int iSetSMEG1_CFG1_rp_uncrt_err_inj_req(unsigned int urp_uncrt_err_inj_req);
int iSetSMEG1_CFG1_fidr_crt_err_inj_req(unsigned int ufidr_crt_err_inj_req);
int iSetSMEG1_CFG1_fidr_uncrt_err_inj_req(unsigned int ufidr_uncrt_err_inj_req);
int iSetSMEG1_RUNAWAY_CFG_smeg1_runaway_cfg(unsigned int usmeg1_runaway_cfg);
int iSetSMEG1_THREAD_ENABLE_CFG_smeg1_thread_enable_cfg(unsigned int usmeg1_thread_enable_cfg);
int iSetSMEG1_TM_TS_FAST2_smeg1_tm_ts_fast2(unsigned int usmeg1_tm_ts_fast2);
int iSetSMEG1_TM_TS_FAST3_smeg1_tm_ts_fast3(unsigned int usmeg1_tm_ts_fast3);
int iSetSMEG1_TM_TS_SLOW0_smeg1_tm_ts_slow0(unsigned int usmeg1_tm_ts_slow0);
int iSetSMEG1_TM_TS_SLOW1_smeg1_tm_ts_slow1(unsigned int usmeg1_tm_ts_slow1);
int iSetSMEG1_TM_TMT_CFG7_smeg1_tm_tmt28(unsigned int usmeg1_tm_tmt28);
int iSetSMEG1_TM_TMT_CFG7_smeg1_tm_tmt29(unsigned int usmeg1_tm_tmt29);
int iSetSMEG1_TM_TMT_CFG7_smeg1_tm_tmt30(unsigned int usmeg1_tm_tmt30);
int iSetSMEG1_TM_TMT_CFG7_smeg1_tm_tmt31(unsigned int usmeg1_tm_tmt31);
int iSetSMEG1_TM_TMT_CFG6_smeg1_tm_tmt24(unsigned int usmeg1_tm_tmt24);
int iSetSMEG1_TM_TMT_CFG6_smeg1_tm_tmt25(unsigned int usmeg1_tm_tmt25);
int iSetSMEG1_TM_TMT_CFG6_smeg1_tm_tmt26(unsigned int usmeg1_tm_tmt26);
int iSetSMEG1_TM_TMT_CFG6_smeg1_tm_tmt27(unsigned int usmeg1_tm_tmt27);
int iSetSMEG1_TM_TMT_CFG5_smeg1_tm_tmt20(unsigned int usmeg1_tm_tmt20);
int iSetSMEG1_TM_TMT_CFG5_smeg1_tm_tmt21(unsigned int usmeg1_tm_tmt21);
int iSetSMEG1_TM_TMT_CFG5_smeg1_tm_tmt22(unsigned int usmeg1_tm_tmt22);
int iSetSMEG1_TM_TMT_CFG5_smeg1_tm_tmt23(unsigned int usmeg1_tm_tmt23);
int iSetSMEG1_TM_TMT_CFG4_smeg1_tm_tmt16(unsigned int usmeg1_tm_tmt16);
int iSetSMEG1_TM_TMT_CFG4_smeg1_tm_tmt17(unsigned int usmeg1_tm_tmt17);
int iSetSMEG1_TM_TMT_CFG4_smeg1_tm_tmt18(unsigned int usmeg1_tm_tmt18);
int iSetSMEG1_TM_TMT_CFG4_smeg1_tm_tmt19(unsigned int usmeg1_tm_tmt19);
int iSetSMEG1_TM_TMT_CFG3_smeg1_tm_tmt12(unsigned int usmeg1_tm_tmt12);
int iSetSMEG1_TM_TMT_CFG3_smeg1_tm_tmt13(unsigned int usmeg1_tm_tmt13);
int iSetSMEG1_TM_TMT_CFG3_smeg1_tm_tmt14(unsigned int usmeg1_tm_tmt14);
int iSetSMEG1_TM_TMT_CFG3_smeg1_tm_tmt15(unsigned int usmeg1_tm_tmt15);
int iSetSMEG1_TM_TMT_CFG2_smeg1_tm_tmt8(unsigned int usmeg1_tm_tmt8);
int iSetSMEG1_TM_TMT_CFG2_smeg1_tm_tmt9(unsigned int usmeg1_tm_tmt9);
int iSetSMEG1_TM_TMT_CFG2_smeg1_tm_tmt10(unsigned int usmeg1_tm_tmt10);
int iSetSMEG1_TM_TMT_CFG2_smeg1_tm_tmt11(unsigned int usmeg1_tm_tmt11);
int iSetSMEG1_TM_TMT_CFG1_smeg1_tm_tmt4(unsigned int usmeg1_tm_tmt4);
int iSetSMEG1_TM_TMT_CFG1_smeg1_tm_tmt5(unsigned int usmeg1_tm_tmt5);
int iSetSMEG1_TM_TMT_CFG1_smeg1_tm_tmt6(unsigned int usmeg1_tm_tmt6);
int iSetSMEG1_TM_TMT_CFG1_smeg1_tm_tmt7(unsigned int usmeg1_tm_tmt7);
int iSetSMEG1_TM_TMT_CFG0_smeg1_tm_tmt0(unsigned int usmeg1_tm_tmt0);
int iSetSMEG1_TM_TMT_CFG0_smeg1_tm_tmt1(unsigned int usmeg1_tm_tmt1);
int iSetSMEG1_TM_TMT_CFG0_smeg1_tm_tmt2(unsigned int usmeg1_tm_tmt2);
int iSetSMEG1_TM_TMT_CFG0_smeg1_tm_tmt3(unsigned int usmeg1_tm_tmt3);
int iSetSMEG1_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMEG1_INT_VECTOR_enable(unsigned int uenable);
int iSetSMEG1_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMEG1_INT_int_data(unsigned int uint_data);
int iSetSMEG1_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMEG1_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMEG1_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMEG1_ENGINE_SW_ERR_error_bit(unsigned int uerror_bit);
int iSetSMEG1_ENGINE_SW_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMEG1_ENGINE_SW_ERR_sticky(unsigned int usticky);
int iSetSMEG1_ERR0_ecc_crt_err0(unsigned int uecc_crt_err0);
int iSetSMEG1_ERR0_ecc_crt_merr0(unsigned int uecc_crt_merr0);
int iSetSMEG1_ERR0_ecc_crt_err1(unsigned int uecc_crt_err1);
int iSetSMEG1_ERR0_ecc_crt_merr1(unsigned int uecc_crt_merr1);
int iSetSMEG1_ERR0_ecc_crt_err2(unsigned int uecc_crt_err2);
int iSetSMEG1_ERR0_ecc_crt_merr2(unsigned int uecc_crt_merr2);
int iSetSMEG1_ERR0_ecc_crt_err3(unsigned int uecc_crt_err3);
int iSetSMEG1_ERR0_ecc_crt_merr3(unsigned int uecc_crt_merr3);
int iSetSMEG1_ERR0_ecc_crt_err4(unsigned int uecc_crt_err4);
int iSetSMEG1_ERR0_ecc_crt_merr4(unsigned int uecc_crt_merr4);
int iSetSMEG1_ERR0_ecc_crt_err5(unsigned int uecc_crt_err5);
int iSetSMEG1_ERR0_ecc_crt_merr5(unsigned int uecc_crt_merr5);
int iSetSMEG1_ERR0_ecc_crt_err6(unsigned int uecc_crt_err6);
int iSetSMEG1_ERR0_ecc_crt_merr6(unsigned int uecc_crt_merr6);
int iSetSMEG1_ERR0_ecc_crt_err7(unsigned int uecc_crt_err7);
int iSetSMEG1_ERR0_ecc_crt_merr7(unsigned int uecc_crt_merr7);
int iSetSMEG1_ERR0_runaway_err(unsigned int urunaway_err);
int iSetSMEG1_ERR0_runaway_merr(unsigned int urunaway_merr);
int iSetSMEG1_ERR0_ecc_crt_err8(unsigned int uecc_crt_err8);
int iSetSMEG1_ERR0_ecc_crt_merr8(unsigned int uecc_crt_merr8);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask0(unsigned int uecc_crt_err_mask0);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask1(unsigned int uecc_crt_err_mask1);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask2(unsigned int uecc_crt_err_mask2);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask3(unsigned int uecc_crt_err_mask3);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask4(unsigned int uecc_crt_err_mask4);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask5(unsigned int uecc_crt_err_mask5);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask6(unsigned int uecc_crt_err_mask6);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask7(unsigned int uecc_crt_err_mask7);
int iSetSMEG1_ERR0_MASK_runaway_err_mask(unsigned int urunaway_err_mask);
int iSetSMEG1_ERR0_MASK_ecc_crt_err_mask8(unsigned int uecc_crt_err_mask8);
int iSetSMEG1_ERR1_ecc_uncrt_err0(unsigned int uecc_uncrt_err0);
int iSetSMEG1_ERR1_ecc_uncrt_merr0(unsigned int uecc_uncrt_merr0);
int iSetSMEG1_ERR1_ecc_uncrt_err1(unsigned int uecc_uncrt_err1);
int iSetSMEG1_ERR1_ecc_uncrt_merr1(unsigned int uecc_uncrt_merr1);
int iSetSMEG1_ERR1_ecc_uncrt_err2(unsigned int uecc_uncrt_err2);
int iSetSMEG1_ERR1_ecc_uncrt_merr2(unsigned int uecc_uncrt_merr2);
int iSetSMEG1_ERR1_ecc_uncrt_err3(unsigned int uecc_uncrt_err3);
int iSetSMEG1_ERR1_ecc_uncrt_merr3(unsigned int uecc_uncrt_merr3);
int iSetSMEG1_ERR1_ecc_uncrt_err4(unsigned int uecc_uncrt_err4);
int iSetSMEG1_ERR1_ecc_uncrt_merr4(unsigned int uecc_uncrt_merr4);
int iSetSMEG1_ERR1_ecc_uncrt_err5(unsigned int uecc_uncrt_err5);
int iSetSMEG1_ERR1_ecc_uncrt_merr5(unsigned int uecc_uncrt_merr5);
int iSetSMEG1_ERR1_ecc_uncrt_err6(unsigned int uecc_uncrt_err6);
int iSetSMEG1_ERR1_ecc_uncrt_merr6(unsigned int uecc_uncrt_merr6);
int iSetSMEG1_ERR1_ecc_uncrt_err7(unsigned int uecc_uncrt_err7);
int iSetSMEG1_ERR1_ecc_uncrt_merr7(unsigned int uecc_uncrt_merr7);
int iSetSMEG1_ERR1_ecc_uncrt_err8(unsigned int uecc_uncrt_err8);
int iSetSMEG1_ERR1_ecc_uncrt_merr8(unsigned int uecc_uncrt_merr8);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask0(unsigned int uecc_uncrt_err_mask0);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask1(unsigned int uecc_uncrt_err_mask1);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask2(unsigned int uecc_uncrt_err_mask2);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask3(unsigned int uecc_uncrt_err_mask3);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask4(unsigned int uecc_uncrt_err_mask4);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask5(unsigned int uecc_uncrt_err_mask5);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask6(unsigned int uecc_uncrt_err_mask6);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask7(unsigned int uecc_uncrt_err_mask7);
int iSetSMEG1_ERR1_MASK_ecc_uncrt_err_mask8(unsigned int uecc_uncrt_err_mask8);
int iSetSMEG1_INDRECT_CTRL_smeg1_indir_addr(unsigned int usmeg1_indir_addr);
int iSetSMEG1_INDRECT_CTRL_smeg1_indir_tab(unsigned int usmeg1_indir_tab);
int iSetSMEG1_INDRECT_CTRL_smeg1_indir_stat(unsigned int usmeg1_indir_stat);
int iSetSMEG1_INDRECT_CTRL_smeg1_indir_mode(unsigned int usmeg1_indir_mode);
int iSetSMEG1_INDRECT_CTRL_smeg1_indir_vld(unsigned int usmeg1_indir_vld);
int iSetSMEG1_INDRECT_TIMEOUT_smeg1_indir_timeout(unsigned int usmeg1_indir_timeout);
int iSetSMEG1_INDRECT_DATA_smeg1_indir_data(unsigned int usmeg1_indir_data);
int iSetSMEG1_CNT_CFG_cnt0_enable(unsigned int ucnt0_enable);
int iSetSMEG1_CNT_CFG_cnt1_enable(unsigned int ucnt1_enable);
int iSetSMEG1_CNT_CFG_cnt2_enable(unsigned int ucnt2_enable);
int iSetSMEG1_CNT_CFG_cnt3_enable(unsigned int ucnt3_enable);
int iSetSMEG1_CNT_CFG_cnt0_match_en(unsigned int ucnt0_match_en);
int iSetSMEG1_CNT_CFG_cnt1_match_en(unsigned int ucnt1_match_en);
int iSetSMEG1_CNT_CFG_cnt2_match_en(unsigned int ucnt2_match_en);
int iSetSMEG1_CNT_CFG_cnt3_match_en(unsigned int ucnt3_match_en);
int iSetSMEG1_CNT_CFG_cnt0_sel(unsigned int ucnt0_sel);
int iSetSMEG1_CNT_CFG_cnt1_sel(unsigned int ucnt1_sel);
int iSetSMEG1_CNT_CFG_cnt2_sel(unsigned int ucnt2_sel);
int iSetSMEG1_CNT_CFG_cnt3_sel(unsigned int ucnt3_sel);
int iSetSMEG1_CNT_MATCH_ID_cnt0_match_id(unsigned int ucnt0_match_id);
int iSetSMEG1_CNT_MATCH_ID_cnt1_match_id(unsigned int ucnt1_match_id);
int iSetSMEG1_CNT_MATCH_ID_cnt2_match_id(unsigned int ucnt2_match_id);
int iSetSMEG1_CNT_MATCH_ID_cnt3_match_id(unsigned int ucnt3_match_id);
int iSetSMEG1_CNT0_smeg1_cnt0(unsigned int usmeg1_cnt0);
int iSetSMEG1_CNT1_smeg1_cnt1(unsigned int usmeg1_cnt1);
int iSetSMEG1_CNT2_smeg1_cnt2(unsigned int usmeg1_cnt2);
int iSetSMEG1_CNT3_smeg1_cnt3(unsigned int usmeg1_cnt3);


int iSetSMEG1_THREAD_ENABLE_CFG2_smeg1_thread_enable_cfg2(unsigned int usmeg1_thread_enable_cfg2);


int iSetSMEG1_TMT_EXT_CFG_smeg1_tmt_ext_cfg(unsigned int usmeg1_tmt_ext_cfg);
int iSetSMEG1_MEM_ECC_ERR_CTP_flag(unsigned int uflag);
int iSetSMEG1_MEM_ECC_ERR_CTP_addr(unsigned int uaddr);
int iSetSMMC_CACHE_RESOURCE_CTP_sq_cnt(unsigned int usq_cnt);
int iSetSMMC_CACHE_RESOURCE_CTP_rq_cnt(unsigned int urq_cnt);
int iSetSMEG1_SYNC_API_CFG_snapshot_eng_id(unsigned int usnapshot_eng_id);
int iSetSMEG1_SYNC_API_CFG_snapshot_eng_en(unsigned int usnapshot_eng_en);
int iSetSMEG1_SYNC_API_CFG_sync_cnt_threshold(unsigned int usync_cnt_threshold);

int iSetSMEG1_CUR_TIMESTAMP_US_ctp(unsigned int uctp);
int iSetSMEG1_RUNAWAY_THD_CTP_ctp(unsigned int uctp);
int iSetSMEG1_CTP0_active_runaway_thd(unsigned int uactive_runaway_thd);
int iSetSMEG1_CTP1_smeg1_internal(unsigned int usmeg1_internal);
int iSetSMEG1_CTP2_wt_runaway(unsigned int uwt_runaway);
int iSetSMEG1_CTP3_tcd(unsigned int utcd);

/* Define the union csr_smit_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smit_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_version_u;

/* Define the union csr_smit_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dis_oder : 1;             /* [0] */
        u32 rsv_0 : 7;                /* [7:1] */
        u32 tp_ram_tmod : 8;          /* [15:8] */
        u32 mem_ret1n : 1;            /* [16] */
        u32 mem_pb_chk_en : 1;        /* [17] */
        u32 rp_crt_err_inj_req : 1;   /* [18] */
        u32 rp_uncrt_err_inj_req : 1; /* [19] */
        u32 rsv_1 : 12;               /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_cfg_u;

/* Define the union csr_smit_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_2 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_3 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_int_vector_u;

/* Define the union csr_smit_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 3;        /* [2:0] */
        u32 rsv_4 : 13;          /* [15:3] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_int_u;

/* Define the union csr_smit_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 3;        /* [2:0] */
        u32 rsv_5 : 13;          /* [15:3] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_int_mask_u;

/* Define the union csr_smit_err_prty_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_err_prty_u;

/* Define the union csr_smit_mem_ecc_crt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_mem_ecc_crt_err_u;

/* Define the union csr_smit_mem_ecc_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_mem_ecc_uncrt_err_u;

/* Define the union csr_smit_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smit_indir_addr : 24; /* [23:0] */
        u32 smit_indir_tab : 4;   /* [27:24] */
        u32 smit_indir_stat : 2;  /* [29:28] */
        u32 smit_indir_mode : 1;  /* [30] */
        u32 smit_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_indrect_ctrl_u;

/* Define the union csr_smit_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smit_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_indrect_timeout_u;

/* Define the union csr_smit_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smit_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smit_indrect_data_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smit_version_u smit_version;                     /* 0 */
    volatile csr_smit_cfg_u smit_cfg;                             /* 4 */
    volatile csr_smit_int_vector_u smit_int_vector;               /* 8 */
    volatile csr_smit_int_u smit_int;                             /* C */
    volatile csr_smit_int_mask_u smit_int_mask;                   /* 10 */
    volatile csr_smit_err_prty_u smit_err_prty;                   /* 14 */
    volatile csr_smit_mem_ecc_crt_err_u smit_mem_ecc_crt_err;     /* 18 */
    volatile csr_smit_mem_ecc_uncrt_err_u smit_mem_ecc_uncrt_err; /* 1C */
    volatile csr_smit_indrect_ctrl_u smit_indrect_ctrl;           /* 20 */
    volatile csr_smit_indrect_timeout_u smit_indrect_timeout;     /* 24 */
    volatile csr_smit_indrect_data_u smit_indrect_data;           /* 28 */
    volatile csr_cfg_mem_ctrl_bus0_u cfg_mem_ctrl_bus0;           /* 2C */
    volatile csr_cfg_mem_ctrl_bus1_u cfg_mem_ctrl_bus1;           /* 30 */
    volatile csr_cfg_mem_ctrl_bus2_u cfg_mem_ctrl_bus2;           /* 34 */
    volatile csr_cfg_mem_ctrl_bus3_u cfg_mem_ctrl_bus3;           /* 38 */
    volatile csr_cfg_mem_ctrl_bus4_u cfg_mem_ctrl_bus4;           /* 3C */
} S_smit_csr_REGS_TYPE;

/* Declare the struct pointor of the module smit_csr */
extern volatile S_smit_csr_REGS_TYPE *gopsmit_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMIT_VERSION_smit_version(unsigned int usmit_version);
int iSetSMIT_CFG_dis_oder(unsigned int udis_oder);
int iSetSMIT_CFG_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSMIT_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSMIT_CFG_mem_pb_chk_en(unsigned int umem_pb_chk_en);
int iSetSMIT_CFG_rp_crt_err_inj_req(unsigned int urp_crt_err_inj_req);
int iSetSMIT_CFG_rp_uncrt_err_inj_req(unsigned int urp_uncrt_err_inj_req);
int iSetSMIT_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMIT_INT_VECTOR_enable(unsigned int uenable);
int iSetSMIT_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMIT_INT_int_data(unsigned int uint_data);
int iSetSMIT_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMIT_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMIT_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMIT_ERR_PRTY_error_bit(unsigned int uerror_bit);
int iSetSMIT_ERR_PRTY_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIT_ERR_PRTY_sticky(unsigned int usticky);
int iSetSMIT_MEM_ECC_CRT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMIT_MEM_ECC_CRT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIT_MEM_ECC_CRT_ERR_sticky(unsigned int usticky);
int iSetSMIT_MEM_ECC_UNCRT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMIT_MEM_ECC_UNCRT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMIT_MEM_ECC_UNCRT_ERR_sticky(unsigned int usticky);
int iSetSMIT_INDRECT_CTRL_smit_indir_addr(unsigned int usmit_indir_addr);
int iSetSMIT_INDRECT_CTRL_smit_indir_tab(unsigned int usmit_indir_tab);
int iSetSMIT_INDRECT_CTRL_smit_indir_stat(unsigned int usmit_indir_stat);
int iSetSMIT_INDRECT_CTRL_smit_indir_mode(unsigned int usmit_indir_mode);
int iSetSMIT_INDRECT_CTRL_smit_indir_vld(unsigned int usmit_indir_vld);
int iSetSMIT_INDRECT_TIMEOUT_smit_indir_timeout(unsigned int usmit_indir_timeout);
int iSetSMIT_INDRECT_DATA_smit_indir_data(unsigned int usmit_indir_data);
int iSetCFG_MEM_CTRL_BUS0_cfg_mem_ctrl_bus0(unsigned int ucfg_mem_ctrl_bus0);
int iSetCFG_MEM_CTRL_BUS1_cfg_mem_ctrl_bus1(unsigned int ucfg_mem_ctrl_bus1);
int iSetCFG_MEM_CTRL_BUS2_cfg_mem_ctrl_bus2(unsigned int ucfg_mem_ctrl_bus2);
int iSetCFG_MEM_CTRL_BUS3_cfg_mem_ctrl_bus3(unsigned int ucfg_mem_ctrl_bus3);
int iSetCFG_MEM_CTRL_BUS4_cfg_mem_ctrl_bus4(unsigned int ucfg_mem_ctrl_bus4);

/* Define the union csr_smlc_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smlc_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_version_u;

/* Define the union csr_smlc_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smlc_ecc_chk_en : 1;    /* [0] */
        u32 smlc_crt_err_inj : 1;   /* [1] */
        u32 smlc_uncrt_err_inj : 1; /* [2] */
        u32 rsv_0 : 5;              /* [7:3] */
        u32 tp_ram_tmod : 8;        /* [15:8] */
        u32 sp_ram_tmod : 7;        /* [22:16] */
        u32 mem_ret1n : 1;          /* [23] */
        u32 rsv_1 : 8;              /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_cfg0_u;

/* Define the union csr_smlc_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bypass_cd_31_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_cfg1_u;

/* Define the union csr_smlc_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bypass_cd_63_32 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_cfg2_u;

/* Define the union csr_smlc_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_2 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_3 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_int_vector_u;

/* Define the union csr_smlc_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 2;        /* [1:0] */
        u32 rsv_4 : 14;          /* [15:2] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_int_u;

/* Define the union csr_smlc_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 2;        /* [1:0] */
        u32 rsv_5 : 14;          /* [15:2] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_int_mask_u;

/* Define the union csr_smlc_srf_ov_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 1;          /* [2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_srf_ov_err_u;

/* Define the union csr_smlc_rsv_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_6 : 1; /* [0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_rsv_u;

/* Define the union csr_smlc_ecc_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fiar_1b_ecc_err : 1;  /* [0] */
        u32 fiar_1b_ecc_merr : 1; /* [1] */
        u32 fiar_2b_ecc_err : 1;  /* [2] */
        u32 fiar_2b_ecc_merr : 1; /* [3] */
        u32 bat_1b_ecc_err : 1;   /* [4] */
        u32 bat_1b_ecc_merr : 1;  /* [5] */
        u32 bat_2b_ecc_err : 1;   /* [6] */
        u32 bat_2b_ecc_merr : 1;  /* [7] */
        u32 stb_1b_ecc_err : 1;   /* [8] */
        u32 stb_1b_ecc_merr : 1;  /* [9] */
        u32 stb_2b_ecc_err : 1;   /* [10] */
        u32 stb_2b_ecc_merr : 1;  /* [11] */
        u32 cdb0_1b_ecc_err : 1;  /* [12] */
        u32 cdb0_1b_ecc_merr : 1; /* [13] */
        u32 cdb0_2b_ecc_err : 1;  /* [14] */
        u32 cdb0_2b_ecc_merr : 1; /* [15] */
        u32 cdb1_1b_ecc_err : 1;  /* [16] */
        u32 cdb1_1b_ecc_merr : 1; /* [17] */
        u32 cdb1_2b_ecc_err : 1;  /* [18] */
        u32 cdb1_2b_ecc_merr : 1; /* [19] */
        u32 pab_1b_ecc_err : 1;   /* [20] */
        u32 pab_1b_ecc_merr : 1;  /* [21] */
        u32 pab_2b_ecc_err : 1;   /* [22] */
        u32 pab_2b_ecc_merr : 1;  /* [23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_ecc_err_u;

/* Define the union csr_smlc_ecc_errpr_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fiar_1b_ecc_err_mask : 1; /* [0] */
        u32 fiar_2b_ecc_err_mask : 1; /* [1] */
        u32 bat_1b_ecc_err_mask : 1;  /* [2] */
        u32 bat_2b_ecc_err_mask : 1;  /* [3] */
        u32 stb_1b_ecc_err_mask : 1;  /* [4] */
        u32 stb_2b_ecc_err_mask : 1;  /* [5] */
        u32 cdb0_1b_ecc_err_mask : 1; /* [6] */
        u32 cdb0_2b_ecc_err_mask : 1; /* [7] */
        u32 cdb1_1b_ecc_err_mask : 1; /* [8] */
        u32 cdb1_2b_ecc_err_mask : 1; /* [9] */
        u32 pab_1b_ecc_err_mask : 1;  /* [10] */
        u32 pab_2b_ecc_err_mask : 1;  /* [11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_ecc_errpr_mask_u;

/* Define the union csr_smlc_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smlc_indir_addr : 20; /* [19:0] */
        u32 smlc_indir_tab : 8;   /* [27:20] */
        u32 smlc_indir_stat : 2;  /* [29:28] */
        u32 smlc_indir_mode : 1;  /* [30] */
        u32 smlc_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_indrect_ctrl_u;

/* Define the union csr_smlc_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smlc_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_indrect_timeout_u;

/* Define the union csr_smlc_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smlc_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_indrect_data_u;

/* Define the union csr_smlc_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smlc_cnt0 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smlc_cnt0_u;

/* Define the union csr_smlc_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smlc_cnt1 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smlc_cnt1_u;

/* Define the union csr_smlc_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smlc_cnt2 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smlc_cnt2_u;

/* Define the union csr_smlc_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smlc_cnt3 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smlc_cnt3_u;

/* Define the union csr_smlc_cnt_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt_enable : 4;             /* [3:0] */
        u32 cnt0_inst_match_enable : 1; /* [4] */
        u32 cnt1_inst_match_enable : 1; /* [5] */
        u32 cnt2_inst_match_enable : 1; /* [6] */
        u32 cnt3_inst_match_enable : 1; /* [7] */
        u32 cnt0_match_inst_id : 6;     /* [13:8] */
        u32 cnt1_match_inst_id : 6;     /* [19:14] */
        u32 cnt2_match_inst_id : 6;     /* [25:20] */
        u32 cnt3_match_inst_id : 6;     /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_cnt_cfg0_u;

/* Define the union csr_smlc_cnt_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_event_sel : 4; /* [3:0] */
        u32 cnt1_event_sel : 4; /* [7:4] */
        u32 cnt2_event_sel : 4; /* [11:8] */
        u32 cnt3_event_sel : 4; /* [15:12] */
        u32 rsv_7 : 16;         /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_cnt_cfg1_u;

/* Define the union csr_smlc_credit_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_credit : 5; /* [4:0] */
        u32 vc_credit : 2;   /* [6:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_credit_ctp_u;

/* Define the union csr_smlc_fifo_depth_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 srf_fifo_depth : 6; /* [5:0] */
        u32 rsv_8 : 4;          /* [9:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_fifo_depth_ctp_u;

/* Define the union csr_smlc_ecc_err_ctp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_error_info : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smlc_ecc_err_ctp_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smlc_version_u smlc_version;                 /* 0 */
    volatile csr_smlc_cfg0_u smlc_cfg0;                       /* 4 */
    volatile csr_smlc_cfg1_u smlc_cfg1;                       /* 8 */
    volatile csr_smlc_cfg2_u smlc_cfg2;                       /* C */
    volatile csr_smlc_int_vector_u smlc_int_vector;           /* 10 */
    volatile csr_smlc_int_u smlc_int;                         /* 14 */
    volatile csr_smlc_int_mask_u smlc_int_mask;               /* 18 */
    volatile csr_smlc_srf_ov_err_u smlc_srf_ov_err;           /* 1C */
    volatile csr_smlc_rsv_u smlc_rsv;                         /* 20 */
    volatile csr_smlc_ecc_err_u smlc_ecc_err;                 /* 24 */
    volatile csr_smlc_ecc_errpr_mask_u smlc_ecc_errpr_mask;   /* 28 */
    volatile csr_smlc_indrect_ctrl_u smlc_indrect_ctrl;       /* 2C */
    volatile csr_smlc_indrect_timeout_u smlc_indrect_timeout; /* 30 */
    volatile csr_smlc_indrect_data_u smlc_indrect_data;       /* 34 */
    volatile csr_smlc_cnt0_u smlc_cnt0;                       /* 38 */
    volatile csr_smlc_cnt1_u smlc_cnt1;                       /* 40 */
    volatile csr_smlc_cnt2_u smlc_cnt2;                       /* 48 */
    volatile csr_smlc_cnt3_u smlc_cnt3;                       /* 50 */
    volatile csr_smlc_cnt_cfg0_u smlc_cnt_cfg0;               /* 58 */
    volatile csr_smlc_cnt_cfg1_u smlc_cnt_cfg1;               /* 5C */
    volatile csr_smlc_credit_ctp_u smlc_credit_ctp;           /* 60 */
    volatile csr_smlc_fifo_depth_ctp_u smlc_fifo_depth_ctp;   /* 64 */
    volatile csr_smlc_ecc_err_ctp_u smlc_ecc_err_ctp;         /* 68 */
} S_smlc_csr_REGS_TYPE;

/* Declare the struct pointor of the module smlc_csr */
extern volatile S_smlc_csr_REGS_TYPE *gopsmlc_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMLC_VERSION_smlc_version(unsigned int usmlc_version);
int iSetSMLC_CFG0_smlc_ecc_chk_en(unsigned int usmlc_ecc_chk_en);
int iSetSMLC_CFG0_smlc_crt_err_inj(unsigned int usmlc_crt_err_inj);
int iSetSMLC_CFG0_smlc_uncrt_err_inj(unsigned int usmlc_uncrt_err_inj);
int iSetSMLC_CFG0_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSMLC_CFG0_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMLC_CFG0_mem_ret1n(unsigned int umem_ret1n);
int iSetSMLC_CFG1_bypass_cd_31_0(unsigned int ubypass_cd_31_0);
int iSetSMLC_CFG2_bypass_cd_63_32(unsigned int ubypass_cd_63_32);
int iSetSMLC_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMLC_INT_VECTOR_enable(unsigned int uenable);
int iSetSMLC_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMLC_INT_int_data(unsigned int uint_data);
int iSetSMLC_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMLC_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMLC_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMLC_SRF_OV_ERR_error_bit(unsigned int uerror_bit);
int iSetSMLC_SRF_OV_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMLC_SRF_OV_ERR_sticky(unsigned int usticky);

int iSetSMLC_ECC_ERR_fiar_1b_ecc_err(unsigned int ufiar_1b_ecc_err);
int iSetSMLC_ECC_ERR_fiar_1b_ecc_merr(unsigned int ufiar_1b_ecc_merr);
int iSetSMLC_ECC_ERR_fiar_2b_ecc_err(unsigned int ufiar_2b_ecc_err);
int iSetSMLC_ECC_ERR_fiar_2b_ecc_merr(unsigned int ufiar_2b_ecc_merr);
int iSetSMLC_ECC_ERR_bat_1b_ecc_err(unsigned int ubat_1b_ecc_err);
int iSetSMLC_ECC_ERR_bat_1b_ecc_merr(unsigned int ubat_1b_ecc_merr);
int iSetSMLC_ECC_ERR_bat_2b_ecc_err(unsigned int ubat_2b_ecc_err);
int iSetSMLC_ECC_ERR_bat_2b_ecc_merr(unsigned int ubat_2b_ecc_merr);
int iSetSMLC_ECC_ERR_stb_1b_ecc_err(unsigned int ustb_1b_ecc_err);
int iSetSMLC_ECC_ERR_stb_1b_ecc_merr(unsigned int ustb_1b_ecc_merr);
int iSetSMLC_ECC_ERR_stb_2b_ecc_err(unsigned int ustb_2b_ecc_err);
int iSetSMLC_ECC_ERR_stb_2b_ecc_merr(unsigned int ustb_2b_ecc_merr);
int iSetSMLC_ECC_ERR_cdb0_1b_ecc_err(unsigned int ucdb0_1b_ecc_err);
int iSetSMLC_ECC_ERR_cdb0_1b_ecc_merr(unsigned int ucdb0_1b_ecc_merr);
int iSetSMLC_ECC_ERR_cdb0_2b_ecc_err(unsigned int ucdb0_2b_ecc_err);
int iSetSMLC_ECC_ERR_cdb0_2b_ecc_merr(unsigned int ucdb0_2b_ecc_merr);
int iSetSMLC_ECC_ERR_cdb1_1b_ecc_err(unsigned int ucdb1_1b_ecc_err);
int iSetSMLC_ECC_ERR_cdb1_1b_ecc_merr(unsigned int ucdb1_1b_ecc_merr);
int iSetSMLC_ECC_ERR_cdb1_2b_ecc_err(unsigned int ucdb1_2b_ecc_err);
int iSetSMLC_ECC_ERR_cdb1_2b_ecc_merr(unsigned int ucdb1_2b_ecc_merr);
int iSetSMLC_ECC_ERR_pab_1b_ecc_err(unsigned int upab_1b_ecc_err);
int iSetSMLC_ECC_ERR_pab_1b_ecc_merr(unsigned int upab_1b_ecc_merr);
int iSetSMLC_ECC_ERR_pab_2b_ecc_err(unsigned int upab_2b_ecc_err);
int iSetSMLC_ECC_ERR_pab_2b_ecc_merr(unsigned int upab_2b_ecc_merr);
int iSetSMLC_ECC_ERRPR_MASK_fiar_1b_ecc_err_mask(unsigned int ufiar_1b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_fiar_2b_ecc_err_mask(unsigned int ufiar_2b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_bat_1b_ecc_err_mask(unsigned int ubat_1b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_bat_2b_ecc_err_mask(unsigned int ubat_2b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_stb_1b_ecc_err_mask(unsigned int ustb_1b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_stb_2b_ecc_err_mask(unsigned int ustb_2b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_cdb0_1b_ecc_err_mask(unsigned int ucdb0_1b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_cdb0_2b_ecc_err_mask(unsigned int ucdb0_2b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_cdb1_1b_ecc_err_mask(unsigned int ucdb1_1b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_cdb1_2b_ecc_err_mask(unsigned int ucdb1_2b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_pab_1b_ecc_err_mask(unsigned int upab_1b_ecc_err_mask);
int iSetSMLC_ECC_ERRPR_MASK_pab_2b_ecc_err_mask(unsigned int upab_2b_ecc_err_mask);
int iSetSMLC_INDRECT_CTRL_smlc_indir_addr(unsigned int usmlc_indir_addr);
int iSetSMLC_INDRECT_CTRL_smlc_indir_tab(unsigned int usmlc_indir_tab);
int iSetSMLC_INDRECT_CTRL_smlc_indir_stat(unsigned int usmlc_indir_stat);
int iSetSMLC_INDRECT_CTRL_smlc_indir_mode(unsigned int usmlc_indir_mode);
int iSetSMLC_INDRECT_CTRL_smlc_indir_vld(unsigned int usmlc_indir_vld);
int iSetSMLC_INDRECT_TIMEOUT_smlc_indir_timeout(unsigned int usmlc_indir_timeout);
int iSetSMLC_INDRECT_DATA_smlc_indir_data(unsigned int usmlc_indir_data);
int iSetSMLC_CNT0_smlc_cnt0(unsigned int usmlc_cnt0);
int iSetSMLC_CNT1_smlc_cnt1(unsigned int usmlc_cnt1);
int iSetSMLC_CNT2_smlc_cnt2(unsigned int usmlc_cnt2);
int iSetSMLC_CNT3_smlc_cnt3(unsigned int usmlc_cnt3);
int iSetSMLC_CNT_CFG0_cnt_enable(unsigned int ucnt_enable);
int iSetSMLC_CNT_CFG0_cnt0_inst_match_enable(unsigned int ucnt0_inst_match_enable);
int iSetSMLC_CNT_CFG0_cnt1_inst_match_enable(unsigned int ucnt1_inst_match_enable);
int iSetSMLC_CNT_CFG0_cnt2_inst_match_enable(unsigned int ucnt2_inst_match_enable);
int iSetSMLC_CNT_CFG0_cnt3_inst_match_enable(unsigned int ucnt3_inst_match_enable);
int iSetSMLC_CNT_CFG0_cnt0_match_inst_id(unsigned int ucnt0_match_inst_id);
int iSetSMLC_CNT_CFG0_cnt1_match_inst_id(unsigned int ucnt1_match_inst_id);
int iSetSMLC_CNT_CFG0_cnt2_match_inst_id(unsigned int ucnt2_match_inst_id);
int iSetSMLC_CNT_CFG0_cnt3_match_inst_id(unsigned int ucnt3_match_inst_id);
int iSetSMLC_CNT_CFG1_cnt0_event_sel(unsigned int ucnt0_event_sel);
int iSetSMLC_CNT_CFG1_cnt1_event_sel(unsigned int ucnt1_event_sel);
int iSetSMLC_CNT_CFG1_cnt2_event_sel(unsigned int ucnt2_event_sel);
int iSetSMLC_CNT_CFG1_cnt3_event_sel(unsigned int ucnt3_event_sel);
int iSetSMLC_CREDIT_CTP_smmc_credit(unsigned int usmmc_credit);
int iSetSMLC_CREDIT_CTP_vc_credit(unsigned int uvc_credit);
int iSetSMLC_FIFO_DEPTH_CTP_srf_fifo_depth(unsigned int usrf_fifo_depth);
int iSetSMLC_ECC_ERR_CTP_ecc_error_info(unsigned int uecc_error_info);

/* Define the union csr_smmc_f_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_version_u;

/* Define the union csr_smmc_f_mc_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_qu_tx_ctp_enb : 1;          /* [0] */
        u32 smmc_f_qu_rx_ctp_enb : 1;          /* [1] */
        u32 smmc_mc_cla_chk_enb : 1;           /* [2] */
        u32 smmc_mc_ecc_parity_enable : 1;     /* [3] */
        u32 smmc_qu_return_fifo_bpon_thd : 6;  /* [9:4] */
        u32 smmc_qu_return_fifo_bp0ff_thd : 6; /* [15:10] */
        u32 smmc_qu_store_bp_thd : 8;          /* [23:16] */
        u32 mem_bank_id_pst : 2;               /* [25:24] */
        u32 write_so_ro : 2;                   /* [27:26] */
        u32 read_so_ro : 2;                    /* [29:28] */
        u32 rsv_0 : 2;                         /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cfg_u;

/* Define the union csr_smmc_f_mc_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cid_src : 15;    /* [14:0] */
        u32 bankid_src : 15; /* [29:15] */
        u32 rsv_1 : 2;       /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cfg1_u;

/* Define the union csr_smmc_hash_seed0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hash_seed_cfg0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_hash_seed0_u;

/* Define the union csr_smmc_hash_seed1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hash_seed_cfg1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_hash_seed1_u;

/* Define the union csr_smmc_f_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tp_ram_tmod : 8;         /* [7:0] */
        u32 sp_ram_tmod : 7;         /* [14:8] */
        u32 mem_ret1n : 1;           /* [15] */
        u32 smmc_f_bank_vld_num : 2; /* [17:16] */
        u32 smmc_f_bank_vld_id : 4;  /* [21:18] */
        u32 rsv_2 : 2;               /* [23:22] */
        u32 sp_ram_tmod_div2 : 7;    /* [30:24] */
        u32 mem_ret1n_div2 : 1;      /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_cfg_u;

/* Define the union csr_smmc_f_mc_init_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_mc_init : 1;             /* [0] */
        u32 smmc_mc_init_start_addr : 14; /* [14:1] */
        u32 smmc_mc_init_end_addr : 14;   /* [28:15] */
        u32 rsv_3 : 3;                    /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_init_u;

/* Define the union csr_smmc_f_mc_rf_timeout_interval_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_refill_timeout_interval : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_rf_timeout_interval_u;

/* Define the union csr_smmc_f_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_4 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_5 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_int_vector_u;

/* Define the union csr_smmc_f_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 6;        /* [5:0] */
        u32 rsv_6 : 10;          /* [15:6] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_int_u;

/* Define the union csr_smmc_f_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 6;        /* [5:0] */
        u32 rsv_7 : 10;          /* [15:6] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_int_mask_u;

/* Define the union csr_smmc_f_mc_cache_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_tag0_1b_ecc_err : 1;   /* [0] */
        u32 mc_tag0_1b_ecc_merr : 1;  /* [1] */
        u32 mc_tag0_2b_ecc_err : 1;   /* [2] */
        u32 mc_tag0_2b_ecc_merr : 1;  /* [3] */
        u32 mc_tag1_1b_ecc_err : 1;   /* [4] */
        u32 mc_tag1_1b_ecc_merr : 1;  /* [5] */
        u32 mc_tag1_2b_ecc_err : 1;   /* [6] */
        u32 mc_tag1_2b_ecc_merr : 1;  /* [7] */
        u32 mc_tag2_1b_ecc_err : 1;   /* [8] */
        u32 mc_tag2_1b_ecc_merr : 1;  /* [9] */
        u32 mc_tag2_2b_ecc_err : 1;   /* [10] */
        u32 mc_tag2_2b_ecc_merr : 1;  /* [11] */
        u32 mc_tag3_1b_ecc_err : 1;   /* [12] */
        u32 mc_tag3_1b_ecc_merr : 1;  /* [13] */
        u32 mc_tag3_2b_ecc_err : 1;   /* [14] */
        u32 mc_tag3_2b_ecc_merr : 1;  /* [15] */
        u32 mc_data0_1b_ecc_err : 1;  /* [16] */
        u32 mc_data0_1b_ecc_merr : 1; /* [17] */
        u32 mc_data0_2b_ecc_err : 1;  /* [18] */
        u32 mc_data0_2b_ecc_merr : 1; /* [19] */
        u32 mc_data1_1b_ecc_err : 1;  /* [20] */
        u32 mc_data1_1b_ecc_merr : 1; /* [21] */
        u32 mc_data1_2b_ecc_err : 1;  /* [22] */
        u32 mc_data1_2b_ecc_merr : 1; /* [23] */
        u32 mc_data2_1b_ecc_err : 1;  /* [24] */
        u32 mc_data2_1b_ecc_merr : 1; /* [25] */
        u32 mc_data2_2b_ecc_err : 1;  /* [26] */
        u32 mc_data2_2b_ecc_merr : 1; /* [27] */
        u32 mc_data3_1b_ecc_err : 1;  /* [28] */
        u32 mc_data3_1b_ecc_merr : 1; /* [29] */
        u32 mc_data3_2b_ecc_err : 1;  /* [30] */
        u32 mc_data3_2b_ecc_merr : 1; /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cache_err_u;

/* Define the union csr_smmc_f_mc_cache_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_tag0_1b_ecc_err_mask : 1;  /* [0] */
        u32 mc_tag0_2b_ecc_err_mask : 1;  /* [1] */
        u32 mc_tag1_1b_ecc_err_mask : 1;  /* [2] */
        u32 mc_tag1_2b_ecc_err_mask : 1;  /* [3] */
        u32 mc_tag2_1b_ecc_err_mask : 1;  /* [4] */
        u32 mc_tag2_2b_ecc_err_mask : 1;  /* [5] */
        u32 mc_tag3_1b_ecc_err_mask : 1;  /* [6] */
        u32 mc_tag3_2b_ecc_err_mask : 1;  /* [7] */
        u32 mc_data0_1b_ecc_err_mask : 1; /* [8] */
        u32 mc_data0_2b_ecc_err_mask : 1; /* [9] */
        u32 mc_data1_1b_ecc_err_mask : 1; /* [10] */
        u32 mc_data1_2b_ecc_err_mask : 1; /* [11] */
        u32 mc_data2_1b_ecc_err_mask : 1; /* [12] */
        u32 mc_data2_2b_ecc_err_mask : 1; /* [13] */
        u32 mc_data3_1b_ecc_err_mask : 1; /* [14] */
        u32 mc_data3_2b_ecc_err_mask : 1; /* [15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cache_mask_u;

/* Define the union csr_smmc_f_mc_cache_err_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cache_err_info : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cache_err_info_u;

/* Define the union csr_smmc_f_buffer_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_qu_vfa_1b_ecc_err : 1;       /* [0] */
        u32 mc_qu_vfa_1b_ecc_merr : 1;      /* [1] */
        u32 mc_qu_vfa_2b_ecc_err : 1;       /* [2] */
        u32 mc_qu_vfa_2b_ecc_merr : 1;      /* [3] */
        u32 mc_eng_stbuf_1b_ecc_err : 1;    /* [4] */
        u32 mc_eng_stbuf_1b_ecc_merr : 1;   /* [5] */
        u32 mc_eng_stbuf_2b_ecc_err : 1;    /* [6] */
        u32 mc_eng_stbuf_2b_ecc_merr : 1;   /* [7] */
        u32 mc_qu_stbuf_1b_ecc_err : 1;     /* [8] */
        u32 mc_qu_stbuf_1b_ecc_merr : 1;    /* [9] */
        u32 mc_qu_stbuf_2b_ecc_err : 1;     /* [10] */
        u32 mc_qu_stbuf_2b_ecc_merr : 1;    /* [11] */
        u32 mc_qu_lrn_1b_ecc_err : 1;       /* [12] */
        u32 mc_qu_lrn_1b_ecc_merr : 1;      /* [13] */
        u32 mc_qu_lrn_2b_ecc_err : 1;       /* [14] */
        u32 mc_qu_lrn_2b_ecc_merr : 1;      /* [15] */
        u32 mc_qu_datafifo_1b_ecc_err : 1;  /* [16] */
        u32 mc_qu_datafifo_1b_ecc_merr : 1; /* [17] */
        u32 mc_qu_datafifo_2b_ecc_err : 1;  /* [18] */
        u32 mc_qu_datafifo_2b_ecc_merr : 1; /* [19] */
        u32 mc_rfbuf_1b_ecc_err : 1;        /* [20] */
        u32 mc_rfbuf_1b_ecc_merr : 1;       /* [21] */
        u32 mc_rfbuf_2b_ecc_err : 1;        /* [22] */
        u32 mc_rfbuf_2b_ecc_merr : 1;       /* [23] */
        u32 vc_smxtf_buf_1b_ecc_err : 1;    /* [24] */
        u32 vc_smxtf_buf_1b_ecc_merr : 1;   /* [25] */
        u32 vc_smxtf_buf_2b_ecc_err : 1;    /* [26] */
        u32 vc_smxtf_buf_2b_ecc_merr : 1;   /* [27] */
        u32 directwqe_err : 1;              /* [28] */
        u32 directwqe_merr : 1;             /* [29] */
        u32 fifo_ovf_err : 1;               /* [30] */
        u32 fifo_ovf_merr : 1;              /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_buffer_err_u;

/* Define the union csr_smmc_f_buffer_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_qu_vfa_1b_ecc_err_mask : 1;      /* [0] */
        u32 mc_qu_vfa_2b_ecc_err_mask : 1;      /* [1] */
        u32 mc_eng_stbuf_1b_ecc_err_mask : 1;   /* [2] */
        u32 mc_eng_stbuf_2b_ecc_err_mask : 1;   /* [3] */
        u32 mc_qu_stbuf_1b_ecc_err_mask : 1;    /* [4] */
        u32 mc_qu_stbuf_2b_ecc_err_mask : 1;    /* [5] */
        u32 mc_qu_lrn_1b_ecc_err_mask : 1;      /* [6] */
        u32 mc_qu_lrn_2b_ecc_err_mask : 1;      /* [7] */
        u32 mc_qu_datafifo_1b_ecc_err_mask : 1; /* [8] */
        u32 mc_qu_datafifo_2b_ecc_err_mask : 1; /* [9] */
        u32 mc_rfbuf_1b_ecc_err_mask : 1;       /* [10] */
        u32 mc_rfbuf_2b_ecc_err_mask : 1;       /* [11] */
        u32 vc_smxtf_buf_1b_ecc_err_mask : 1;   /* [12] */
        u32 vc_smxtf_buf_2b_ecc_err_mask : 1;   /* [13] */
        u32 directwqe_err_mask : 1;             /* [14] */
        u32 fifo_ovf_err_mask : 1;              /* [15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_buffer_mask_u;

/* Define the union csr_smmc_f_buffer_err_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_buffer_err_info : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_buffer_err_info_u;

/* Define the union csr_smmc_f_bus_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_rf_timeout_err : 1;         /* [0] */
        u32 mc_rf_timeout_merr : 1;        /* [1] */
        u32 mc_rf_rtn_err : 1;             /* [2] */
        u32 mc_rf_rtn_merr : 1;            /* [3] */
        u32 qpc_ring_e01_err : 1;          /* [4] */
        u32 qpc_ring_e01_merr : 1;         /* [5] */
        u32 qu_lrn_fifo_1bit_ecc_err : 1;  /* [6] */
        u32 qu_lrn_fifo_1bit_ecc_merr : 1; /* [7] */
        u32 qu_lrn_fifo_2bit_ecc_err : 1;  /* [8] */
        u32 qu_lrn_fifo_2bit_ecc_merr : 1; /* [9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_bus_err_u;

/* Define the union csr_smmc_f_bus_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_rf_timeout_err_mask : 1;        /* [0] */
        u32 mc_rf_rtn_err_mask : 1;            /* [1] */
        u32 qpc_ring_e01_err_mask : 1;         /* [2] */
        u32 qu_lrn_fifo_1bit_ecc_err_mask : 1; /* [3] */
        u32 qu_lrn_fifo_2bit_ecc_err_mask : 1; /* [4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_bus_mask_u;

/* Define the union csr_smmc_f_mc_multi_hit_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_multi_hit_err_u;

/* Define the union csr_smmc_f_vc_cache_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vc_wb0_1b_ecc_err : 1;    /* [0] */
        u32 vc_wb0_1b_ecc_merr : 1;   /* [1] */
        u32 vc_wb0_2b_ecc_err : 1;    /* [2] */
        u32 vc_wb0_2b_ecc_merr : 1;   /* [3] */
        u32 vc_wb1_1b_ecc_err : 1;    /* [4] */
        u32 vc_wb1_1b_ecc_merr : 1;   /* [5] */
        u32 vc_wb1_2b_ecc_err : 1;    /* [6] */
        u32 vc_wb1_2b_ecc_merr : 1;   /* [7] */
        u32 vc_wb2_1b_ecc_err : 1;    /* [8] */
        u32 vc_wb2_1b_ecc_merr : 1;   /* [9] */
        u32 vc_wb2_2b_ecc_err : 1;    /* [10] */
        u32 vc_wb2_2b_ecc_merr : 1;   /* [11] */
        u32 vc_wb3_1b_ecc_err : 1;    /* [12] */
        u32 vc_wb3_1b_ecc_merr : 1;   /* [13] */
        u32 vc_wb3_2b_ecc_err : 1;    /* [14] */
        u32 vc_wb3_2b_ecc_merr : 1;   /* [15] */
        u32 vc_data0_1b_ecc_err : 1;  /* [16] */
        u32 vc_data0_1b_ecc_merr : 1; /* [17] */
        u32 vc_data0_2b_ecc_err : 1;  /* [18] */
        u32 vc_data0_2b_ecc_merr : 1; /* [19] */
        u32 vc_data1_1b_ecc_err : 1;  /* [20] */
        u32 vc_data1_1b_ecc_merr : 1; /* [21] */
        u32 vc_data1_2b_ecc_err : 1;  /* [22] */
        u32 vc_data1_2b_ecc_merr : 1; /* [23] */
        u32 vc_data2_1b_ecc_err : 1;  /* [24] */
        u32 vc_data2_1b_ecc_merr : 1; /* [25] */
        u32 vc_data2_2b_ecc_err : 1;  /* [26] */
        u32 vc_data2_2b_ecc_merr : 1; /* [27] */
        u32 vc_data3_1b_ecc_err : 1;  /* [28] */
        u32 vc_data3_1b_ecc_merr : 1; /* [29] */
        u32 vc_data3_2b_ecc_err : 1;  /* [30] */
        u32 vc_data3_2b_ecc_merr : 1; /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_vc_cache_err_u;

/* Define the union csr_smmc_f_vc_cache_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vc_wb0_1b_ecc_err_mask : 1;   /* [0] */
        u32 vc_wb0_2b_ecc_err_mask : 1;   /* [1] */
        u32 vc_wb1_1b_ecc_err_mask : 1;   /* [2] */
        u32 vc_wb1_2b_ecc_err_mask : 1;   /* [3] */
        u32 vc_wb2_1b_ecc_err_mask : 1;   /* [4] */
        u32 vc_wb2_2b_ecc_err_mask : 1;   /* [5] */
        u32 vc_wb3_1b_ecc_err_mask : 1;   /* [6] */
        u32 vc_wb3_2b_ecc_err_mask : 1;   /* [7] */
        u32 vc_data0_1b_ecc_err_mask : 1; /* [8] */
        u32 vc_data0_2b_ecc_err_mask : 1; /* [9] */
        u32 vc_data1_1b_ecc_err_mask : 1; /* [10] */
        u32 vc_data1_2b_ecc_err_mask : 1; /* [11] */
        u32 vc_data2_1b_ecc_err_mask : 1; /* [12] */
        u32 vc_data2_2b_ecc_err_mask : 1; /* [13] */
        u32 vc_data3_1b_ecc_err_mask : 1; /* [14] */
        u32 vc_data3_2b_ecc_err_mask : 1; /* [15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_vc_cache_mask_u;

/* Define the union csr_smmc_f_vc_cache_err_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vc_cache_err_info : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_vc_cache_err_info_u;

/* Define the union csr_smmc_f_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_indir_addr : 24; /* [23:0] */
        u32 smmc_f_indir_tab : 4;   /* [27:24] */
        u32 smmc_f_indir_stat : 2;  /* [29:28] */
        u32 smmc_f_indir_mode : 1;  /* [30] */
        u32 smmc_f_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_indrect_ctrl_u;

/* Define the union csr_smmc_f_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_indrect_timeout_u;

/* Define the union csr_smmc_f_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_indrect_data_u;

/* Define the union csr_smmc_f_mc_cnt_enb_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_mc_cnt_enb : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_enb_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel_enb_grp0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_mc_cnt_event_sel_enb0 : 8; /* [7:0] */
        u32 smmc_f_mc_cnt_event_sel_enb1 : 8; /* [15:8] */
        u32 smmc_f_mc_cnt_event_sel_enb2 : 8; /* [23:16] */
        u32 smmc_f_mc_cnt_event_sel_enb3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel_enb_grp0_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel_enb_grp1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_mc_cnt_event_sel_enb4 : 8; /* [7:0] */
        u32 smmc_f_mc_cnt_event_sel_enb5 : 8; /* [15:8] */
        u32 smmc_f_mc_cnt_event_sel_enb6 : 8; /* [23:16] */
        u32 smmc_f_mc_cnt_event_sel_enb7 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel_enb_grp1_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel0_vf_id : 10;     /* [9:0] */
        u32 rsv_8 : 5;                        /* [14:10] */
        u32 mc_cnt_event_sel0_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel0_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel0_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel0_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel0_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel0_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel0_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel1_vf_id : 10;     /* [9:0] */
        u32 rsv_9 : 5;                        /* [14:10] */
        u32 mc_cnt_event_sel1_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel1_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel1_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel1_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel1_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel1_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel1_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel2_vf_id : 10;     /* [9:0] */
        u32 rsv_10 : 5;                       /* [14:10] */
        u32 mc_cnt_event_sel2_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel2_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel2_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel2_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel2_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel2_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel2_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel3_vf_id : 10;     /* [9:0] */
        u32 rsv_11 : 5;                       /* [14:10] */
        u32 mc_cnt_event_sel3_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel3_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel3_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel3_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel3_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel3_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel3_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel4_vf_id : 10;     /* [9:0] */
        u32 rsv_12 : 5;                       /* [14:10] */
        u32 mc_cnt_event_sel4_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel4_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel4_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel4_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel4_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel4_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel4_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel5_vf_id : 10;     /* [9:0] */
        u32 rsv_13 : 5;                       /* [14:10] */
        u32 mc_cnt_event_sel5_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel5_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel5_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel5_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel5_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel5_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel5_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel6_vf_id : 10;     /* [9:0] */
        u32 rsv_14 : 5;                       /* [14:10] */
        u32 mc_cnt_event_sel6_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel6_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel6_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel6_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel6_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel6_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel6_u;

/* Define the union csr_smmc_f_mc_cnt_event_sel7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_cnt_event_sel7_vf_id : 10;     /* [9:0] */
        u32 rsv_15 : 5;                       /* [14:10] */
        u32 mc_cnt_event_sel7_tag_type : 4;   /* [18:15] */
        u32 mc_cnt_event_sel7_bank_id : 2;    /* [20:19] */
        u32 mc_cnt_event_sel7_req_src : 3;    /* [23:21] */
        u32 mc_cnt_event_sel7_api_type : 4;   /* [27:24] */
        u32 mc_cnt_event_sel7_event_type : 3; /* [30:28] */
        u32 mc_cnt_event_sel7_unit_type : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cnt_event_sel7_u;

/* Define the union csr_smmc_f_mc_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mc_init_done : 1;        /* [0] */
        u32 mc_free_tag_num : 7;     /* [7:1] */
        u32 qu_rx_flit_ctp_done : 1; /* [8] */
        u32 qu_tx_flit_ctp_done : 1; /* [9] */
        u32 smmc_rf_timeout : 1;     /* [10] */
        u32 rsv_16 : 21;             /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_status_u;

/* Define the union csr_smmc_f_mc_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt0 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt0_u;

/* Define the union csr_smmc_f_mc_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt1 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt1_u;

/* Define the union csr_smmc_f_mc_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt2 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt2_u;

/* Define the union csr_smmc_f_mc_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt3 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt3_u;

/* Define the union csr_smmc_f_mc_cnt4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt4 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt4_u;

/* Define the union csr_smmc_f_mc_cnt5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt5 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt5_u;

/* Define the union csr_smmc_f_mc_cnt6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt6 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt6_u;

/* Define the union csr_smmc_f_mc_cnt7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u64 smmc_f_mc_cnt7 : 48; /* [47:0] */
    } bits;

    /* Define an unsigned member */
    u64 value;
} csr_smmc_f_mc_cnt7_u;

/* Define the union csr_smmc_f_vc_fifo_depth0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vc0_wb_data_fifo_depth : 5; /* [4:0] */
        u32 vc1_wb_data_fifo_depth : 5; /* [9:5] */
        u32 vc2_wb_data_fifo_depth : 5; /* [14:10] */
        u32 vc3_wb_data_fifo_depth : 5; /* [19:15] */
        u32 vc0_wb_ctrl_fifo_depth : 3; /* [22:20] */
        u32 vc1_wb_ctrl_fifo_depth : 3; /* [25:23] */
        u32 vc2_wb_ctrl_fifo_depth : 3; /* [28:26] */
        u32 vc3_wb_ctrl_fifo_depth : 3; /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_vc_fifo_depth0_u;

/* Define the union csr_smmc_f_vc_fifo_depth1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vc0_ctrl_fifo_depth : 2; /* [1:0] */
        u32 vc1_ctrl_fifo_depth : 2; /* [3:2] */
        u32 vc2_ctrl_fifo_depth : 2; /* [5:4] */
        u32 vc3_ctrl_fifo_depth : 2; /* [7:6] */
        u32 vc0_data_fifo_depth : 2; /* [9:8] */
        u32 vc1_data_fifo_depth : 2; /* [11:10] */
        u32 vc2_data_fifo_depth : 2; /* [13:12] */
        u32 vc3_data_fifo_depth : 2; /* [15:14] */
        u32 smxtf_fifo_depth : 6;    /* [21:16] */
        u32 vc_crdt_from_smit : 3;   /* [24:22] */
        u32 data_credit_from_qu : 6; /* [30:25] */
        u32 rsv_17 : 1;              /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_vc_fifo_depth1_u;

/* Define the union csr_smmc_f_mc_fifo1_depth_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qu_cmd_fifo_depth : 4;  /* [3:0] */
        u32 qu_data_fifo_depth : 6; /* [9:4] */
        u32 lrb0_fifo_depth : 6;    /* [15:10] */
        u32 lrb1_fifo_depth : 6;    /* [21:16] */
        u32 lrb2_fifo_depth : 6;    /* [27:22] */
        u32 rsv_18 : 4;             /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_fifo1_depth_u;

/* Define the union csr_smmc_f_mc_fifo2_depth_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qu_return_fifo_depth : 6;  /* [5:0] */
        u32 qu_return_fifo_bp : 1;     /* [6] */
        u32 qu_store_buffer_bp : 1;    /* [7] */
        u32 lrb3_fifo_depth : 6;       /* [13:8] */
        u32 rfbuf_credit : 9;          /* [22:14] */
        u32 qu_store_buffer_depth : 9; /* [31:23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_fifo2_depth_u;

/* Define the union csr_smmc_f_err_inj_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_vc0_crt_err_inj : 1;       /* [0] */
        u32 smmc_vc0_uncrt_err_inj : 1;     /* [1] */
        u32 smmc_vc1_crt_err_inj : 1;       /* [2] */
        u32 smmc_vc1_uncrt_err_inj : 1;     /* [3] */
        u32 smmc_vc2_crt_err_inj : 1;       /* [4] */
        u32 smmc_vc2_uncrt_err_inj : 1;     /* [5] */
        u32 smmc_vc3_crt_err_inj : 1;       /* [6] */
        u32 smmc_vc3_uncrt_err_inj : 1;     /* [7] */
        u32 smmc_mc0_crt_err_inj : 1;       /* [8] */
        u32 smmc_mc0_uncrt_err_inj : 1;     /* [9] */
        u32 smmc_mc1_crt_err_inj : 1;       /* [10] */
        u32 smmc_mc1_uncrt_err_inj : 1;     /* [11] */
        u32 smmc_mc2_crt_err_inj : 1;       /* [12] */
        u32 smmc_mc2_uncrt_err_inj : 1;     /* [13] */
        u32 smmc_mc3_crt_err_inj : 1;       /* [14] */
        u32 smmc_mc3_uncrt_err_inj : 1;     /* [15] */
        u32 smmc_qu_intf_crt_err_inj : 1;   /* [16] */
        u32 smmc_qu_intf_uncrt_err_inj : 1; /* [17] */
        u32 smmc_rf_buf_crt_err_inj : 1;    /* [18] */
        u32 smmc_rf_buf_uncrt_err_inj : 1;  /* [19] */
        u32 smmc_vfa_crt_err_inj : 1;       /* [20] */
        u32 smmc_vfa_uncrt_err_inj : 1;     /* [21] */
        u32 smmc_stb_crt_err_inj : 1;       /* [22] */
        u32 smmc_stb_uncrt_err_inj : 1;     /* [23] */
        u32 smmc_smxtfb_crt_err_inj : 1;    /* [24] */
        u32 smmc_smxtfb_uncrt_err_inj : 1;  /* [25] */
        u32 rsv_19 : 6;                     /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_err_inj_u;

/* Define the union csr_smmc_f_gpa_trans_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 30;         /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_gpa_trans_err_u;

/* Define the union csr_smmc_f_qu_intf_cnt_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_qu_intf_tx_cnt_cfg : 16; /* [15:0] */
        u32 smmc_f_qu_intf_rx_cnt_cfg : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_qu_intf_cnt_cfg_u;

/* Define the union csr_smmc_f_qu_intf_rx_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_qu_intf_rx_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_qu_intf_rx_cnt_u;

/* Define the union csr_smmc_f_qu_intf_tx_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_qu_intf_tx_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_qu_intf_tx_cnt_u;

/* Define the union csr_smmc_f_mc_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_rsc_cnt_mix_en : 1;     /* [0] */
        u32 smmc_f_rtt_cnt_type : 1;       /* [1] */
        u32 smmc_f_rtt_cnt_enb : 1;        /* [2] */
        u32 smmc_f_rf_err_ctp_clr : 1;     /* [3] */
        u32 smf_common_mem_power_mode : 6; /* [9:4] */
        u32 mc_refill_timeout_enb : 1;     /* [10] */
        u32 bypass_smvc : 1;               /* [11] */
        u32 rsv_20 : 20;                   /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_f_mc_cfg2_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smmc_f_version_u smmc_f_version;                                     /* 0 */
    volatile csr_smmc_f_mc_cfg_u smmc_f_mc_cfg;                                       /* 4 */
    volatile csr_smmc_f_mc_cfg1_u smmc_f_mc_cfg1;                                     /* 8 */
    volatile csr_smmc_hash_seed0_u smmc_hash_seed0;                                   /* C */
    volatile csr_smmc_hash_seed1_u smmc_hash_seed1;                                   /* 10 */
    volatile csr_smmc_f_cfg_u smmc_f_cfg;                                             /* 14 */
    volatile csr_smmc_f_mc_init_u smmc_f_mc_init;                                     /* 18 */
    volatile csr_smmc_f_mc_rf_timeout_interval_u smmc_f_mc_rf_timeout_interval;       /* 1C */
    volatile csr_smmc_f_int_vector_u smmc_f_int_vector;                               /* 20 */
    volatile csr_smmc_f_int_u smmc_f_int;                                             /* 24 */
    volatile csr_smmc_f_int_mask_u smmc_f_int_mask;                                   /* 28 */
    volatile csr_smmc_f_mc_cache_err_u smmc_f_mc_cache_err;                           /* 2C */
    volatile csr_smmc_f_mc_cache_mask_u smmc_f_mc_cache_mask;                         /* 30 */
    volatile csr_smmc_f_mc_cache_err_info_u smmc_f_mc_cache_err_info;                 /* 34 */
    volatile csr_smmc_f_buffer_err_u smmc_f_buffer_err;                               /* 38 */
    volatile csr_smmc_f_buffer_mask_u smmc_f_buffer_mask;                             /* 3C */
    volatile csr_smmc_f_buffer_err_info_u smmc_f_buffer_err_info;                     /* 40 */
    volatile csr_smmc_f_bus_err_u smmc_f_bus_err;                                     /* 44 */
    volatile csr_smmc_f_bus_mask_u smmc_f_bus_mask;                                   /* 48 */
    volatile csr_smmc_f_mc_multi_hit_err_u smmc_f_mc_multi_hit_err;                   /* 4C */
    volatile csr_smmc_f_vc_cache_err_u smmc_f_vc_cache_err;                           /* 50 */
    volatile csr_smmc_f_vc_cache_mask_u smmc_f_vc_cache_mask;                         /* 54 */
    volatile csr_smmc_f_vc_cache_err_info_u smmc_f_vc_cache_err_info;                 /* 58 */
    volatile csr_smmc_f_indrect_ctrl_u smmc_f_indrect_ctrl;                           /* 5C */
    volatile csr_smmc_f_indrect_timeout_u smmc_f_indrect_timeout;                     /* 60 */
    volatile csr_smmc_f_indrect_data_u smmc_f_indrect_data;                           /* 64 */
    volatile csr_smmc_f_mc_cnt_enb_u smmc_f_mc_cnt_enb;                               /* 68 */
    volatile csr_smmc_f_mc_cnt_event_sel_enb_grp0_u smmc_f_mc_cnt_event_sel_enb_grp0; /* 6C */
    volatile csr_smmc_f_mc_cnt_event_sel_enb_grp1_u smmc_f_mc_cnt_event_sel_enb_grp1; /* 70 */
    volatile csr_smmc_f_mc_cnt_event_sel0_u smmc_f_mc_cnt_event_sel0;                 /* 74 */
    volatile csr_smmc_f_mc_cnt_event_sel1_u smmc_f_mc_cnt_event_sel1;                 /* 78 */
    volatile csr_smmc_f_mc_cnt_event_sel2_u smmc_f_mc_cnt_event_sel2;                 /* 7C */
    volatile csr_smmc_f_mc_cnt_event_sel3_u smmc_f_mc_cnt_event_sel3;                 /* 80 */
    volatile csr_smmc_f_mc_cnt_event_sel4_u smmc_f_mc_cnt_event_sel4;                 /* 84 */
    volatile csr_smmc_f_mc_cnt_event_sel5_u smmc_f_mc_cnt_event_sel5;                 /* 88 */
    volatile csr_smmc_f_mc_cnt_event_sel6_u smmc_f_mc_cnt_event_sel6;                 /* 8C */
    volatile csr_smmc_f_mc_cnt_event_sel7_u smmc_f_mc_cnt_event_sel7;                 /* 90 */
    volatile csr_smmc_f_mc_status_u smmc_f_mc_status;                                 /* 94 */
    volatile csr_smmc_f_mc_cnt0_u smmc_f_mc_cnt0;                                     /* 98 */
    volatile csr_smmc_f_mc_cnt1_u smmc_f_mc_cnt1;                                     /* A0 */
    volatile csr_smmc_f_mc_cnt2_u smmc_f_mc_cnt2;                                     /* A8 */
    volatile csr_smmc_f_mc_cnt3_u smmc_f_mc_cnt3;                                     /* B0 */
    volatile csr_smmc_f_mc_cnt4_u smmc_f_mc_cnt4;                                     /* B8 */
    volatile csr_smmc_f_mc_cnt5_u smmc_f_mc_cnt5;                                     /* C0 */
    volatile csr_smmc_f_mc_cnt6_u smmc_f_mc_cnt6;                                     /* C8 */
    volatile csr_smmc_f_mc_cnt7_u smmc_f_mc_cnt7;                                     /* D0 */
    volatile csr_smmc_f_vc_fifo_depth0_u smmc_f_vc_fifo_depth0;                       /* D8 */
    volatile csr_smmc_f_vc_fifo_depth1_u smmc_f_vc_fifo_depth1;                       /* DC */
    volatile csr_smmc_f_mc_fifo1_depth_u smmc_f_mc_fifo1_depth;                       /* E0 */
    volatile csr_smmc_f_mc_fifo2_depth_u smmc_f_mc_fifo2_depth;                       /* E4 */
    volatile csr_smmc_f_err_inj_u smmc_f_err_inj;                                     /* E8 */
    volatile csr_smmc_f_gpa_trans_err_u smmc_f_gpa_trans_err;                         /* EC */
    volatile csr_smmc_f_qu_intf_cnt_cfg_u smmc_f_qu_intf_cnt_cfg;                     /* F0 */
    volatile csr_smmc_f_qu_intf_rx_cnt_u smmc_f_qu_intf_rx_cnt;                       /* F4 */
    volatile csr_smmc_f_qu_intf_tx_cnt_u smmc_f_qu_intf_tx_cnt;                       /* F8 */
    volatile csr_smmc_f_mc_cfg2_u smmc_f_mc_cfg2;                                     /* FC */
} S_smmc_f_csr_REGS_TYPE;

/* Declare the struct pointor of the module smmc_f_csr */
extern volatile S_smmc_f_csr_REGS_TYPE *gopsmmc_f_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMMC_F_VERSION_smmc_f_version(unsigned int usmmc_f_version);
int iSetSMMC_F_MC_CFG_smmc_f_qu_tx_ctp_enb(unsigned int usmmc_f_qu_tx_ctp_enb);
int iSetSMMC_F_MC_CFG_smmc_f_qu_rx_ctp_enb(unsigned int usmmc_f_qu_rx_ctp_enb);
int iSetSMMC_F_MC_CFG_smmc_mc_cla_chk_enb(unsigned int usmmc_mc_cla_chk_enb);
int iSetSMMC_F_MC_CFG_smmc_mc_ecc_parity_enable(unsigned int usmmc_mc_ecc_parity_enable);
int iSetSMMC_F_MC_CFG_smmc_qu_return_fifo_bpon_thd(unsigned int usmmc_qu_return_fifo_bpon_thd);
int iSetSMMC_F_MC_CFG_smmc_qu_return_fifo_bp0ff_thd(unsigned int usmmc_qu_return_fifo_bp0ff_thd);
int iSetSMMC_F_MC_CFG_smmc_qu_store_bp_thd(unsigned int usmmc_qu_store_bp_thd);
int iSetSMMC_F_MC_CFG_mem_bank_id_pst(unsigned int umem_bank_id_pst);
int iSetSMMC_F_MC_CFG_write_so_ro(unsigned int uwrite_so_ro);
int iSetSMMC_F_MC_CFG_read_so_ro(unsigned int uread_so_ro);
int iSetSMMC_F_MC_CFG1_cid_src(unsigned int ucid_src);
int iSetSMMC_F_MC_CFG1_bankid_src(unsigned int ubankid_src);
int iSetSMMC_HASH_SEED0_hash_seed_cfg0(unsigned int uhash_seed_cfg0);
int iSetSMMC_HASH_SEED1_hash_seed_cfg1(unsigned int uhash_seed_cfg1);
int iSetSMMC_F_CFG_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetSMMC_F_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMMC_F_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSMMC_F_CFG_smmc_f_bank_vld_num(unsigned int usmmc_f_bank_vld_num);
int iSetSMMC_F_CFG_smmc_f_bank_vld_id(unsigned int usmmc_f_bank_vld_id);
int iSetSMMC_F_CFG_sp_ram_tmod_div2(unsigned int usp_ram_tmod_div2);
int iSetSMMC_F_CFG_mem_ret1n_div2(unsigned int umem_ret1n_div2);
int iSetSMMC_F_MC_INIT_smmc_mc_init(unsigned int usmmc_mc_init);
int iSetSMMC_F_MC_INIT_smmc_mc_init_start_addr(unsigned int usmmc_mc_init_start_addr);
int iSetSMMC_F_MC_INIT_smmc_mc_init_end_addr(unsigned int usmmc_mc_init_end_addr);
int iSetSMMC_F_MC_RF_TIMEOUT_INTERVAL_mc_refill_timeout_interval(unsigned int umc_refill_timeout_interval);
int iSetSMMC_F_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMMC_F_INT_VECTOR_enable(unsigned int uenable);
int iSetSMMC_F_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMMC_F_INT_int_data(unsigned int uint_data);
int iSetSMMC_F_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMMC_F_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMMC_F_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag0_1b_ecc_err(unsigned int umc_tag0_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag0_1b_ecc_merr(unsigned int umc_tag0_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag0_2b_ecc_err(unsigned int umc_tag0_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag0_2b_ecc_merr(unsigned int umc_tag0_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag1_1b_ecc_err(unsigned int umc_tag1_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag1_1b_ecc_merr(unsigned int umc_tag1_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag1_2b_ecc_err(unsigned int umc_tag1_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag1_2b_ecc_merr(unsigned int umc_tag1_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag2_1b_ecc_err(unsigned int umc_tag2_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag2_1b_ecc_merr(unsigned int umc_tag2_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag2_2b_ecc_err(unsigned int umc_tag2_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag2_2b_ecc_merr(unsigned int umc_tag2_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag3_1b_ecc_err(unsigned int umc_tag3_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag3_1b_ecc_merr(unsigned int umc_tag3_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag3_2b_ecc_err(unsigned int umc_tag3_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_tag3_2b_ecc_merr(unsigned int umc_tag3_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data0_1b_ecc_err(unsigned int umc_data0_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data0_1b_ecc_merr(unsigned int umc_data0_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data0_2b_ecc_err(unsigned int umc_data0_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data0_2b_ecc_merr(unsigned int umc_data0_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data1_1b_ecc_err(unsigned int umc_data1_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data1_1b_ecc_merr(unsigned int umc_data1_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data1_2b_ecc_err(unsigned int umc_data1_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data1_2b_ecc_merr(unsigned int umc_data1_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data2_1b_ecc_err(unsigned int umc_data2_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data2_1b_ecc_merr(unsigned int umc_data2_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data2_2b_ecc_err(unsigned int umc_data2_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data2_2b_ecc_merr(unsigned int umc_data2_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data3_1b_ecc_err(unsigned int umc_data3_1b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data3_1b_ecc_merr(unsigned int umc_data3_1b_ecc_merr);
int iSetSMMC_F_MC_CACHE_ERR_mc_data3_2b_ecc_err(unsigned int umc_data3_2b_ecc_err);
int iSetSMMC_F_MC_CACHE_ERR_mc_data3_2b_ecc_merr(unsigned int umc_data3_2b_ecc_merr);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag0_1b_ecc_err_mask(unsigned int umc_tag0_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag0_2b_ecc_err_mask(unsigned int umc_tag0_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag1_1b_ecc_err_mask(unsigned int umc_tag1_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag1_2b_ecc_err_mask(unsigned int umc_tag1_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag2_1b_ecc_err_mask(unsigned int umc_tag2_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag2_2b_ecc_err_mask(unsigned int umc_tag2_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag3_1b_ecc_err_mask(unsigned int umc_tag3_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_tag3_2b_ecc_err_mask(unsigned int umc_tag3_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data0_1b_ecc_err_mask(unsigned int umc_data0_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data0_2b_ecc_err_mask(unsigned int umc_data0_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data1_1b_ecc_err_mask(unsigned int umc_data1_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data1_2b_ecc_err_mask(unsigned int umc_data1_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data2_1b_ecc_err_mask(unsigned int umc_data2_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data2_2b_ecc_err_mask(unsigned int umc_data2_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data3_1b_ecc_err_mask(unsigned int umc_data3_1b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_MASK_mc_data3_2b_ecc_err_mask(unsigned int umc_data3_2b_ecc_err_mask);
int iSetSMMC_F_MC_CACHE_ERR_INFO_mc_cache_err_info(unsigned int umc_cache_err_info);
int iSetSMMC_F_BUFFER_ERR_mc_qu_vfa_1b_ecc_err(unsigned int umc_qu_vfa_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_vfa_1b_ecc_merr(unsigned int umc_qu_vfa_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_vfa_2b_ecc_err(unsigned int umc_qu_vfa_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_vfa_2b_ecc_merr(unsigned int umc_qu_vfa_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_eng_stbuf_1b_ecc_err(unsigned int umc_eng_stbuf_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_eng_stbuf_1b_ecc_merr(unsigned int umc_eng_stbuf_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_eng_stbuf_2b_ecc_err(unsigned int umc_eng_stbuf_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_eng_stbuf_2b_ecc_merr(unsigned int umc_eng_stbuf_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_stbuf_1b_ecc_err(unsigned int umc_qu_stbuf_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_stbuf_1b_ecc_merr(unsigned int umc_qu_stbuf_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_stbuf_2b_ecc_err(unsigned int umc_qu_stbuf_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_stbuf_2b_ecc_merr(unsigned int umc_qu_stbuf_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_lrn_1b_ecc_err(unsigned int umc_qu_lrn_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_lrn_1b_ecc_merr(unsigned int umc_qu_lrn_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_lrn_2b_ecc_err(unsigned int umc_qu_lrn_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_lrn_2b_ecc_merr(unsigned int umc_qu_lrn_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_datafifo_1b_ecc_err(unsigned int umc_qu_datafifo_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_datafifo_1b_ecc_merr(unsigned int umc_qu_datafifo_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_qu_datafifo_2b_ecc_err(unsigned int umc_qu_datafifo_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_qu_datafifo_2b_ecc_merr(unsigned int umc_qu_datafifo_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_rfbuf_1b_ecc_err(unsigned int umc_rfbuf_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_rfbuf_1b_ecc_merr(unsigned int umc_rfbuf_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_mc_rfbuf_2b_ecc_err(unsigned int umc_rfbuf_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_mc_rfbuf_2b_ecc_merr(unsigned int umc_rfbuf_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_vc_smxtf_buf_1b_ecc_err(unsigned int uvc_smxtf_buf_1b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_vc_smxtf_buf_1b_ecc_merr(unsigned int uvc_smxtf_buf_1b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_vc_smxtf_buf_2b_ecc_err(unsigned int uvc_smxtf_buf_2b_ecc_err);
int iSetSMMC_F_BUFFER_ERR_vc_smxtf_buf_2b_ecc_merr(unsigned int uvc_smxtf_buf_2b_ecc_merr);
int iSetSMMC_F_BUFFER_ERR_directwqe_err(unsigned int udirectwqe_err);
int iSetSMMC_F_BUFFER_ERR_directwqe_merr(unsigned int udirectwqe_merr);
int iSetSMMC_F_BUFFER_ERR_fifo_ovf_err(unsigned int ufifo_ovf_err);
int iSetSMMC_F_BUFFER_ERR_fifo_ovf_merr(unsigned int ufifo_ovf_merr);
int iSetSMMC_F_BUFFER_MASK_mc_qu_vfa_1b_ecc_err_mask(unsigned int umc_qu_vfa_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_vfa_2b_ecc_err_mask(unsigned int umc_qu_vfa_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_eng_stbuf_1b_ecc_err_mask(unsigned int umc_eng_stbuf_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_eng_stbuf_2b_ecc_err_mask(unsigned int umc_eng_stbuf_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_stbuf_1b_ecc_err_mask(unsigned int umc_qu_stbuf_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_stbuf_2b_ecc_err_mask(unsigned int umc_qu_stbuf_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_lrn_1b_ecc_err_mask(unsigned int umc_qu_lrn_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_lrn_2b_ecc_err_mask(unsigned int umc_qu_lrn_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_datafifo_1b_ecc_err_mask(unsigned int umc_qu_datafifo_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_qu_datafifo_2b_ecc_err_mask(unsigned int umc_qu_datafifo_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_rfbuf_1b_ecc_err_mask(unsigned int umc_rfbuf_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_mc_rfbuf_2b_ecc_err_mask(unsigned int umc_rfbuf_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_vc_smxtf_buf_1b_ecc_err_mask(unsigned int uvc_smxtf_buf_1b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_vc_smxtf_buf_2b_ecc_err_mask(unsigned int uvc_smxtf_buf_2b_ecc_err_mask);
int iSetSMMC_F_BUFFER_MASK_directwqe_err_mask(unsigned int udirectwqe_err_mask);
int iSetSMMC_F_BUFFER_MASK_fifo_ovf_err_mask(unsigned int ufifo_ovf_err_mask);
int iSetSMMC_F_BUFFER_ERR_INFO_mc_buffer_err_info(unsigned int umc_buffer_err_info);
int iSetSMMC_F_BUS_ERR_mc_rf_timeout_err(unsigned int umc_rf_timeout_err);
int iSetSMMC_F_BUS_ERR_mc_rf_timeout_merr(unsigned int umc_rf_timeout_merr);
int iSetSMMC_F_BUS_ERR_mc_rf_rtn_err(unsigned int umc_rf_rtn_err);
int iSetSMMC_F_BUS_ERR_mc_rf_rtn_merr(unsigned int umc_rf_rtn_merr);
int iSetSMMC_F_BUS_ERR_qpc_ring_e01_err(unsigned int uqpc_ring_e01_err);
int iSetSMMC_F_BUS_ERR_qpc_ring_e01_merr(unsigned int uqpc_ring_e01_merr);
int iSetSMMC_F_BUS_ERR_qu_lrn_fifo_1bit_ecc_err(unsigned int uqu_lrn_fifo_1bit_ecc_err);
int iSetSMMC_F_BUS_ERR_qu_lrn_fifo_1bit_ecc_merr(unsigned int uqu_lrn_fifo_1bit_ecc_merr);
int iSetSMMC_F_BUS_ERR_qu_lrn_fifo_2bit_ecc_err(unsigned int uqu_lrn_fifo_2bit_ecc_err);
int iSetSMMC_F_BUS_ERR_qu_lrn_fifo_2bit_ecc_merr(unsigned int uqu_lrn_fifo_2bit_ecc_merr);
int iSetSMMC_F_BUS_MASK_mc_rf_timeout_err_mask(unsigned int umc_rf_timeout_err_mask);
int iSetSMMC_F_BUS_MASK_mc_rf_rtn_err_mask(unsigned int umc_rf_rtn_err_mask);
int iSetSMMC_F_BUS_MASK_qpc_ring_e01_err_mask(unsigned int uqpc_ring_e01_err_mask);
int iSetSMMC_F_BUS_MASK_qu_lrn_fifo_1bit_ecc_err_mask(unsigned int uqu_lrn_fifo_1bit_ecc_err_mask);
int iSetSMMC_F_BUS_MASK_qu_lrn_fifo_2bit_ecc_err_mask(unsigned int uqu_lrn_fifo_2bit_ecc_err_mask);
int iSetSMMC_F_MC_MULTI_HIT_ERR_error_bit(unsigned int uerror_bit);
int iSetSMMC_F_MC_MULTI_HIT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMMC_F_MC_MULTI_HIT_ERR_sticky(unsigned int usticky);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb0_1b_ecc_err(unsigned int uvc_wb0_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb0_1b_ecc_merr(unsigned int uvc_wb0_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb0_2b_ecc_err(unsigned int uvc_wb0_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb0_2b_ecc_merr(unsigned int uvc_wb0_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb1_1b_ecc_err(unsigned int uvc_wb1_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb1_1b_ecc_merr(unsigned int uvc_wb1_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb1_2b_ecc_err(unsigned int uvc_wb1_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb1_2b_ecc_merr(unsigned int uvc_wb1_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb2_1b_ecc_err(unsigned int uvc_wb2_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb2_1b_ecc_merr(unsigned int uvc_wb2_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb2_2b_ecc_err(unsigned int uvc_wb2_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb2_2b_ecc_merr(unsigned int uvc_wb2_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb3_1b_ecc_err(unsigned int uvc_wb3_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb3_1b_ecc_merr(unsigned int uvc_wb3_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb3_2b_ecc_err(unsigned int uvc_wb3_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_wb3_2b_ecc_merr(unsigned int uvc_wb3_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data0_1b_ecc_err(unsigned int uvc_data0_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data0_1b_ecc_merr(unsigned int uvc_data0_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data0_2b_ecc_err(unsigned int uvc_data0_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data0_2b_ecc_merr(unsigned int uvc_data0_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data1_1b_ecc_err(unsigned int uvc_data1_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data1_1b_ecc_merr(unsigned int uvc_data1_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data1_2b_ecc_err(unsigned int uvc_data1_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data1_2b_ecc_merr(unsigned int uvc_data1_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data2_1b_ecc_err(unsigned int uvc_data2_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data2_1b_ecc_merr(unsigned int uvc_data2_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data2_2b_ecc_err(unsigned int uvc_data2_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data2_2b_ecc_merr(unsigned int uvc_data2_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data3_1b_ecc_err(unsigned int uvc_data3_1b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data3_1b_ecc_merr(unsigned int uvc_data3_1b_ecc_merr);
int iSetSMMC_F_VC_CACHE_ERR_vc_data3_2b_ecc_err(unsigned int uvc_data3_2b_ecc_err);
int iSetSMMC_F_VC_CACHE_ERR_vc_data3_2b_ecc_merr(unsigned int uvc_data3_2b_ecc_merr);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb0_1b_ecc_err_mask(unsigned int uvc_wb0_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb0_2b_ecc_err_mask(unsigned int uvc_wb0_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb1_1b_ecc_err_mask(unsigned int uvc_wb1_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb1_2b_ecc_err_mask(unsigned int uvc_wb1_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb2_1b_ecc_err_mask(unsigned int uvc_wb2_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb2_2b_ecc_err_mask(unsigned int uvc_wb2_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb3_1b_ecc_err_mask(unsigned int uvc_wb3_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_wb3_2b_ecc_err_mask(unsigned int uvc_wb3_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data0_1b_ecc_err_mask(unsigned int uvc_data0_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data0_2b_ecc_err_mask(unsigned int uvc_data0_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data1_1b_ecc_err_mask(unsigned int uvc_data1_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data1_2b_ecc_err_mask(unsigned int uvc_data1_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data2_1b_ecc_err_mask(unsigned int uvc_data2_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data2_2b_ecc_err_mask(unsigned int uvc_data2_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data3_1b_ecc_err_mask(unsigned int uvc_data3_1b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_MASK_vc_data3_2b_ecc_err_mask(unsigned int uvc_data3_2b_ecc_err_mask);
int iSetSMMC_F_VC_CACHE_ERR_INFO_vc_cache_err_info(unsigned int uvc_cache_err_info);
int iSetSMMC_F_INDRECT_CTRL_smmc_f_indir_addr(unsigned int usmmc_f_indir_addr);
int iSetSMMC_F_INDRECT_CTRL_smmc_f_indir_tab(unsigned int usmmc_f_indir_tab);
int iSetSMMC_F_INDRECT_CTRL_smmc_f_indir_stat(unsigned int usmmc_f_indir_stat);
int iSetSMMC_F_INDRECT_CTRL_smmc_f_indir_mode(unsigned int usmmc_f_indir_mode);
int iSetSMMC_F_INDRECT_CTRL_smmc_f_indir_vld(unsigned int usmmc_f_indir_vld);
int iSetSMMC_F_INDRECT_TIMEOUT_smmc_f_indir_timeout(unsigned int usmmc_f_indir_timeout);
int iSetSMMC_F_INDRECT_DATA_smmc_f_indir_data(unsigned int usmmc_f_indir_data);
int iSetSMMC_F_MC_CNT_ENB_smmc_f_mc_cnt_enb(unsigned int usmmc_f_mc_cnt_enb);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP0_smmc_f_mc_cnt_event_sel_enb0(unsigned int usmmc_f_mc_cnt_event_sel_enb0);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP0_smmc_f_mc_cnt_event_sel_enb1(unsigned int usmmc_f_mc_cnt_event_sel_enb1);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP0_smmc_f_mc_cnt_event_sel_enb2(unsigned int usmmc_f_mc_cnt_event_sel_enb2);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP0_smmc_f_mc_cnt_event_sel_enb3(unsigned int usmmc_f_mc_cnt_event_sel_enb3);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP1_smmc_f_mc_cnt_event_sel_enb4(unsigned int usmmc_f_mc_cnt_event_sel_enb4);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP1_smmc_f_mc_cnt_event_sel_enb5(unsigned int usmmc_f_mc_cnt_event_sel_enb5);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP1_smmc_f_mc_cnt_event_sel_enb6(unsigned int usmmc_f_mc_cnt_event_sel_enb6);
int iSetSMMC_F_MC_CNT_EVENT_SEL_ENB_GRP1_smmc_f_mc_cnt_event_sel_enb7(unsigned int usmmc_f_mc_cnt_event_sel_enb7);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_vf_id(unsigned int umc_cnt_event_sel0_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_tag_type(unsigned int umc_cnt_event_sel0_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_bank_id(unsigned int umc_cnt_event_sel0_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_req_src(unsigned int umc_cnt_event_sel0_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_api_type(unsigned int umc_cnt_event_sel0_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_event_type(unsigned int umc_cnt_event_sel0_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL0_mc_cnt_event_sel0_unit_type(unsigned int umc_cnt_event_sel0_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_vf_id(unsigned int umc_cnt_event_sel1_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_tag_type(unsigned int umc_cnt_event_sel1_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_bank_id(unsigned int umc_cnt_event_sel1_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_req_src(unsigned int umc_cnt_event_sel1_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_api_type(unsigned int umc_cnt_event_sel1_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_event_type(unsigned int umc_cnt_event_sel1_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL1_mc_cnt_event_sel1_unit_type(unsigned int umc_cnt_event_sel1_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_vf_id(unsigned int umc_cnt_event_sel2_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_tag_type(unsigned int umc_cnt_event_sel2_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_bank_id(unsigned int umc_cnt_event_sel2_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_req_src(unsigned int umc_cnt_event_sel2_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_api_type(unsigned int umc_cnt_event_sel2_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_event_type(unsigned int umc_cnt_event_sel2_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL2_mc_cnt_event_sel2_unit_type(unsigned int umc_cnt_event_sel2_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_vf_id(unsigned int umc_cnt_event_sel3_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_tag_type(unsigned int umc_cnt_event_sel3_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_bank_id(unsigned int umc_cnt_event_sel3_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_req_src(unsigned int umc_cnt_event_sel3_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_api_type(unsigned int umc_cnt_event_sel3_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_event_type(unsigned int umc_cnt_event_sel3_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL3_mc_cnt_event_sel3_unit_type(unsigned int umc_cnt_event_sel3_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_vf_id(unsigned int umc_cnt_event_sel4_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_tag_type(unsigned int umc_cnt_event_sel4_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_bank_id(unsigned int umc_cnt_event_sel4_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_req_src(unsigned int umc_cnt_event_sel4_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_api_type(unsigned int umc_cnt_event_sel4_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_event_type(unsigned int umc_cnt_event_sel4_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL4_mc_cnt_event_sel4_unit_type(unsigned int umc_cnt_event_sel4_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_vf_id(unsigned int umc_cnt_event_sel5_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_tag_type(unsigned int umc_cnt_event_sel5_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_bank_id(unsigned int umc_cnt_event_sel5_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_req_src(unsigned int umc_cnt_event_sel5_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_api_type(unsigned int umc_cnt_event_sel5_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_event_type(unsigned int umc_cnt_event_sel5_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL5_mc_cnt_event_sel5_unit_type(unsigned int umc_cnt_event_sel5_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_vf_id(unsigned int umc_cnt_event_sel6_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_tag_type(unsigned int umc_cnt_event_sel6_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_bank_id(unsigned int umc_cnt_event_sel6_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_req_src(unsigned int umc_cnt_event_sel6_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_api_type(unsigned int umc_cnt_event_sel6_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_event_type(unsigned int umc_cnt_event_sel6_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL6_mc_cnt_event_sel6_unit_type(unsigned int umc_cnt_event_sel6_unit_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_vf_id(unsigned int umc_cnt_event_sel7_vf_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_tag_type(unsigned int umc_cnt_event_sel7_tag_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_bank_id(unsigned int umc_cnt_event_sel7_bank_id);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_req_src(unsigned int umc_cnt_event_sel7_req_src);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_api_type(unsigned int umc_cnt_event_sel7_api_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_event_type(unsigned int umc_cnt_event_sel7_event_type);
int iSetSMMC_F_MC_CNT_EVENT_SEL7_mc_cnt_event_sel7_unit_type(unsigned int umc_cnt_event_sel7_unit_type);
int iSetSMMC_F_MC_STATUS_mc_init_done(unsigned int umc_init_done);
int iSetSMMC_F_MC_STATUS_mc_free_tag_num(unsigned int umc_free_tag_num);
int iSetSMMC_F_MC_STATUS_qu_rx_flit_ctp_done(unsigned int uqu_rx_flit_ctp_done);
int iSetSMMC_F_MC_STATUS_qu_tx_flit_ctp_done(unsigned int uqu_tx_flit_ctp_done);
int iSetSMMC_F_MC_STATUS_smmc_rf_timeout(unsigned int usmmc_rf_timeout);
int iSetSMMC_F_MC_CNT0_smmc_f_mc_cnt0(unsigned int usmmc_f_mc_cnt0);
int iSetSMMC_F_MC_CNT1_smmc_f_mc_cnt1(unsigned int usmmc_f_mc_cnt1);
int iSetSMMC_F_MC_CNT2_smmc_f_mc_cnt2(unsigned int usmmc_f_mc_cnt2);
int iSetSMMC_F_MC_CNT3_smmc_f_mc_cnt3(unsigned int usmmc_f_mc_cnt3);
int iSetSMMC_F_MC_CNT4_smmc_f_mc_cnt4(unsigned int usmmc_f_mc_cnt4);
int iSetSMMC_F_MC_CNT5_smmc_f_mc_cnt5(unsigned int usmmc_f_mc_cnt5);
int iSetSMMC_F_MC_CNT6_smmc_f_mc_cnt6(unsigned int usmmc_f_mc_cnt6);
int iSetSMMC_F_MC_CNT7_smmc_f_mc_cnt7(unsigned int usmmc_f_mc_cnt7);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc0_wb_data_fifo_depth(unsigned int uvc0_wb_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc1_wb_data_fifo_depth(unsigned int uvc1_wb_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc2_wb_data_fifo_depth(unsigned int uvc2_wb_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc3_wb_data_fifo_depth(unsigned int uvc3_wb_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc0_wb_ctrl_fifo_depth(unsigned int uvc0_wb_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc1_wb_ctrl_fifo_depth(unsigned int uvc1_wb_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc2_wb_ctrl_fifo_depth(unsigned int uvc2_wb_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH0_vc3_wb_ctrl_fifo_depth(unsigned int uvc3_wb_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc0_ctrl_fifo_depth(unsigned int uvc0_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc1_ctrl_fifo_depth(unsigned int uvc1_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc2_ctrl_fifo_depth(unsigned int uvc2_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc3_ctrl_fifo_depth(unsigned int uvc3_ctrl_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc0_data_fifo_depth(unsigned int uvc0_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc1_data_fifo_depth(unsigned int uvc1_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc2_data_fifo_depth(unsigned int uvc2_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc3_data_fifo_depth(unsigned int uvc3_data_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_smxtf_fifo_depth(unsigned int usmxtf_fifo_depth);
int iSetSMMC_F_VC_FIFO_DEPTH1_vc_crdt_from_smit(unsigned int uvc_crdt_from_smit);
int iSetSMMC_F_VC_FIFO_DEPTH1_data_credit_from_qu(unsigned int udata_credit_from_qu);
int iSetSMMC_F_MC_FIFO1_DEPTH_qu_cmd_fifo_depth(unsigned int uqu_cmd_fifo_depth);
int iSetSMMC_F_MC_FIFO1_DEPTH_qu_data_fifo_depth(unsigned int uqu_data_fifo_depth);
int iSetSMMC_F_MC_FIFO1_DEPTH_lrb0_fifo_depth(unsigned int ulrb0_fifo_depth);
int iSetSMMC_F_MC_FIFO1_DEPTH_lrb1_fifo_depth(unsigned int ulrb1_fifo_depth);
int iSetSMMC_F_MC_FIFO1_DEPTH_lrb2_fifo_depth(unsigned int ulrb2_fifo_depth);
int iSetSMMC_F_MC_FIFO2_DEPTH_qu_return_fifo_depth(unsigned int uqu_return_fifo_depth);
int iSetSMMC_F_MC_FIFO2_DEPTH_qu_return_fifo_bp(unsigned int uqu_return_fifo_bp);
int iSetSMMC_F_MC_FIFO2_DEPTH_qu_store_buffer_bp(unsigned int uqu_store_buffer_bp);
int iSetSMMC_F_MC_FIFO2_DEPTH_lrb3_fifo_depth(unsigned int ulrb3_fifo_depth);
int iSetSMMC_F_MC_FIFO2_DEPTH_rfbuf_credit(unsigned int urfbuf_credit);
int iSetSMMC_F_MC_FIFO2_DEPTH_qu_store_buffer_depth(unsigned int uqu_store_buffer_depth);
int iSetSMMC_F_ERR_INJ_smmc_vc0_crt_err_inj(unsigned int usmmc_vc0_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc0_uncrt_err_inj(unsigned int usmmc_vc0_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc1_crt_err_inj(unsigned int usmmc_vc1_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc1_uncrt_err_inj(unsigned int usmmc_vc1_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc2_crt_err_inj(unsigned int usmmc_vc2_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc2_uncrt_err_inj(unsigned int usmmc_vc2_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc3_crt_err_inj(unsigned int usmmc_vc3_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vc3_uncrt_err_inj(unsigned int usmmc_vc3_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc0_crt_err_inj(unsigned int usmmc_mc0_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc0_uncrt_err_inj(unsigned int usmmc_mc0_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc1_crt_err_inj(unsigned int usmmc_mc1_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc1_uncrt_err_inj(unsigned int usmmc_mc1_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc2_crt_err_inj(unsigned int usmmc_mc2_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc2_uncrt_err_inj(unsigned int usmmc_mc2_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc3_crt_err_inj(unsigned int usmmc_mc3_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_mc3_uncrt_err_inj(unsigned int usmmc_mc3_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_qu_intf_crt_err_inj(unsigned int usmmc_qu_intf_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_qu_intf_uncrt_err_inj(unsigned int usmmc_qu_intf_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_rf_buf_crt_err_inj(unsigned int usmmc_rf_buf_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_rf_buf_uncrt_err_inj(unsigned int usmmc_rf_buf_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vfa_crt_err_inj(unsigned int usmmc_vfa_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_vfa_uncrt_err_inj(unsigned int usmmc_vfa_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_stb_crt_err_inj(unsigned int usmmc_stb_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_stb_uncrt_err_inj(unsigned int usmmc_stb_uncrt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_smxtfb_crt_err_inj(unsigned int usmmc_smxtfb_crt_err_inj);
int iSetSMMC_F_ERR_INJ_smmc_smxtfb_uncrt_err_inj(unsigned int usmmc_smxtfb_uncrt_err_inj);
int iSetSMMC_F_GPA_TRANS_ERR_error_bit(unsigned int uerror_bit);
int iSetSMMC_F_GPA_TRANS_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetSMMC_F_GPA_TRANS_ERR_sticky(unsigned int usticky);
int iSetSMMC_F_QU_INTF_CNT_CFG_smmc_f_qu_intf_tx_cnt_cfg(unsigned int usmmc_f_qu_intf_tx_cnt_cfg);
int iSetSMMC_F_QU_INTF_CNT_CFG_smmc_f_qu_intf_rx_cnt_cfg(unsigned int usmmc_f_qu_intf_rx_cnt_cfg);
int iSetSMMC_F_QU_INTF_RX_CNT_smmc_f_qu_intf_rx_cnt(unsigned int usmmc_f_qu_intf_rx_cnt);
int iSetSMMC_F_QU_INTF_TX_CNT_smmc_f_qu_intf_tx_cnt(unsigned int usmmc_f_qu_intf_tx_cnt);
int iSetSMMC_F_MC_CFG2_smmc_f_rsc_cnt_mix_en(unsigned int usmmc_f_rsc_cnt_mix_en);
int iSetSMMC_F_MC_CFG2_smmc_f_rtt_cnt_type(unsigned int usmmc_f_rtt_cnt_type);
int iSetSMMC_F_MC_CFG2_smmc_f_rtt_cnt_enb(unsigned int usmmc_f_rtt_cnt_enb);
int iSetSMMC_F_MC_CFG2_smmc_f_rf_err_ctp_clr(unsigned int usmmc_f_rf_err_ctp_clr);
int iSetSMMC_F_MC_CFG2_smf_common_mem_power_mode(unsigned int usmf_common_mem_power_mode);
int iSetSMMC_F_MC_CFG2_mc_refill_timeout_enb(unsigned int umc_refill_timeout_enb);
int iSetSMMC_F_MC_CFG2_bypass_smvc(unsigned int ubypass_smvc);

/* Define the union csr_smmc_l_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_version_u;

/* Define the union csr_smmc_l_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_parity_chk : 1; /* [0] */
        u32 smmc_l_ecc_chk : 1;    /* [1] */
        u32 mem_ini_en : 1;        /* [2] */
        u32 rsv_0 : 13;            /* [15:3] */
        u32 sp_ram_tmod : 7;       /* [22:16] */
        u32 mem_ret1n : 1;         /* [23] */
        u32 sp_ram_tmod_div2 : 7;  /* [30:24] */
        u32 mem_ret1n_div2 : 1;    /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cfg_u;

/* Define the union csr_smmc_l_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_ini_done : 1; /* [0] */
        u32 rsv_1 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_stat_u;

/* Define the union csr_smmc_l_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_2 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_3 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_int_vector_u;

/* Define the union csr_smmc_l_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 1;        /* [0] */
        u32 rsv_4 : 15;          /* [15:1] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_int_u;

/* Define the union csr_smmc_l_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 1;        /* [0] */
        u32 rsv_5 : 15;          /* [15:1] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_int_mask_u;

/* Define the union csr_smmc_l_mem_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 main_mem_2b_ecc_err : 1;  /* [0] */
        u32 main_mem_2b_ecc_merr : 1; /* [1] */
        u32 main_mem_1b_ecc_err : 1;  /* [2] */
        u32 main_mem_1b_ecc_merr : 1; /* [3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_mem_err_u;

/* Define the union csr_smmc_l_mem_err_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 main_mem_2b_ecc_err_mask : 1; /* [0] */
        u32 main_mem_1b_ecc_err_mask : 1; /* [1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_mem_err_mask_u;

/* Define the union csr_smmc_l_mem_err_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_err_index : 15;    /* [14:0] */
        u32 rsv_6 : 1;             /* [15] */
        u32 mem_err_info_type : 2; /* [17:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_mem_err_info_u;

/* Define the union csr_smmc_l_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_indir_addr : 24; /* [23:0] */
        u32 smmc_l_indir_tab : 4;   /* [27:24] */
        u32 smmc_l_indir_stat : 2;  /* [29:28] */
        u32 smmc_l_indir_mode : 1;  /* [30] */
        u32 smmc_l_indir_vld : 1;   /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_indrect_ctrl_u;

/* Define the union csr_smmc_l_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_indrect_timeout_u;

/* Define the union csr_smmc_l_indrect_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_f_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_indrect_data_u;

/* Define the union csr_smmc_l_cnt_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_enable : 1;   /* [0] */
        u32 cnt1_enable : 1;   /* [1] */
        u32 cnt2_enable : 1;   /* [2] */
        u32 cnt3_enable : 1;   /* [3] */
        u32 cnt0_match_en : 2; /* [5:4] */
        u32 cnt1_match_en : 2; /* [7:6] */
        u32 cnt2_match_en : 2; /* [9:8] */
        u32 cnt3_match_en : 2; /* [11:10] */
        u32 cnt0_sel : 2;      /* [13:12] */
        u32 cnt1_sel : 2;      /* [15:14] */
        u32 cnt2_sel : 2;      /* [17:16] */
        u32 cnt3_sel : 2;      /* [19:18] */
        u32 rsv_7 : 12;        /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt_cfg_u;

/* Define the union csr_smmc_l_cnt_match_bank_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_match_bank : 4; /* [3:0] */
        u32 cnt1_match_bank : 4; /* [7:4] */
        u32 cnt2_match_bank : 4; /* [11:8] */
        u32 cnt3_match_bank : 4; /* [15:12] */
        u32 rsv_8 : 16;          /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt_match_bank_u;

/* Define the union csr_smmc_l_cnt_match_instance_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cnt0_match_inst : 5; /* [4:0] */
        u32 cnt1_match_inst : 5; /* [9:5] */
        u32 cnt2_match_inst : 5; /* [14:10] */
        u32 cnt3_match_inst : 5; /* [19:15] */
        u32 rsv_9 : 12;          /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt_match_instance_u;

/* Define the union csr_smmc_l_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_cnt0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt0_u;

/* Define the union csr_smmc_l_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_cnt1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt1_u;

/* Define the union csr_smmc_l_cnt2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_cnt2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt2_u;

/* Define the union csr_smmc_l_cnt3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_cnt3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_cnt3_u;

/* Define the union csr_smmc_l_bank_queue_depth_ctp0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cur_depth_bank0 : 4; /* [3:0] */
        u32 cur_depth_bank1 : 4; /* [7:4] */
        u32 cur_depth_bank2 : 4; /* [11:8] */
        u32 cur_depth_bank3 : 4; /* [15:12] */
        u32 cur_depth_bank4 : 4; /* [19:16] */
        u32 cur_depth_bank5 : 4; /* [23:20] */
        u32 cur_depth_bank6 : 4; /* [27:24] */
        u32 cur_depth_bank7 : 4; /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_bank_queue_depth_ctp0_u;

/* Define the union csr_smmc_l_bank_queue_depth_ctp1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cur_depth_bank8 : 4;  /* [3:0] */
        u32 cur_depth_bank9 : 4;  /* [7:4] */
        u32 cur_depth_bank10 : 4; /* [11:8] */
        u32 cur_depth_bank11 : 4; /* [15:12] */
        u32 cur_depth_bank12 : 4; /* [19:16] */
        u32 cur_depth_bank13 : 4; /* [23:20] */
        u32 cur_depth_bank14 : 4; /* [27:24] */
        u32 cur_depth_bank15 : 4; /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_bank_queue_depth_ctp1_u;

/* Define the union csr_smmc_l_ecc_inj_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_1b_ecc_inj_en : 1; /* [0] */
        u32 smmc_l_2b_ecc_inj_en : 1; /* [1] */
        u32 rsv_10 : 30;              /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_ecc_inj_cfg_u;

/* Define the union csr_smmc_l_pg_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmc_l_pg_grp1_id : 2; /* [1:0] */
        u32 smmc_l_pg_grp0_id : 2; /* [3:2] */
        u32 smmc_l_pg_grp_num : 1; /* [4] */
        u32 rsv_11 : 27;           /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smmc_l_pg_cfg_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smmc_l_version_u smmc_l_version;                             /* 0 */
    volatile csr_smmc_l_cfg_u smmc_l_cfg;                                     /* 4 */
    volatile csr_smmc_l_stat_u smmc_l_stat;                                   /* 8 */
    volatile csr_smmc_l_int_vector_u smmc_l_int_vector;                       /* C */
    volatile csr_smmc_l_int_u smmc_l_int;                                     /* 10 */
    volatile csr_smmc_l_int_mask_u smmc_l_int_mask;                           /* 14 */
    volatile csr_smmc_l_mem_err_u smmc_l_mem_err;                             /* 18 */
    volatile csr_smmc_l_mem_err_mask_u smmc_l_mem_err_mask;                   /* 1C */
    volatile csr_smmc_l_mem_err_info_u smmc_l_mem_err_info;                   /* 20 */
    volatile csr_smmc_l_indrect_ctrl_u smmc_l_indrect_ctrl;                   /* 24 */
    volatile csr_smmc_l_indrect_timeout_u smmc_l_indrect_timeout;             /* 28 */
    volatile csr_smmc_l_indrect_data_u smmc_l_indrect_data;                   /* 2C */
    volatile csr_smmc_l_cnt_cfg_u smmc_l_cnt_cfg;                             /* 30 */
    volatile csr_smmc_l_cnt_match_bank_u smmc_l_cnt_match_bank;               /* 34 */
    volatile csr_smmc_l_cnt_match_instance_u smmc_l_cnt_match_instance;       /* 38 */
    volatile csr_smmc_l_cnt0_u smmc_l_cnt0;                                   /* 3C */
    volatile csr_smmc_l_cnt1_u smmc_l_cnt1;                                   /* 40 */
    volatile csr_smmc_l_cnt2_u smmc_l_cnt2;                                   /* 44 */
    volatile csr_smmc_l_cnt3_u smmc_l_cnt3;                                   /* 48 */
    volatile csr_smmc_l_bank_queue_depth_ctp0_u smmc_l_bank_queue_depth_ctp0; /* 4C */
    volatile csr_smmc_l_bank_queue_depth_ctp1_u smmc_l_bank_queue_depth_ctp1; /* 50 */
    volatile csr_smmc_l_ecc_inj_cfg_u smmc_l_ecc_inj_cfg;                     /* 54 */
    volatile csr_smmc_l_pg_cfg_u smmc_l_pg_cfg;                               /* 58 */
} S_smmc_l_csr_REGS_TYPE;

/* Declare the struct pointor of the module smmc_l_csr */
extern volatile S_smmc_l_csr_REGS_TYPE *gopsmmc_l_csrAllReg;

/* Declare the functions that set the member value */
int iSetSMMC_L_VERSION_smmc_l_version(unsigned int usmmc_l_version);
int iSetSMMC_L_CFG_smmc_l_parity_chk(unsigned int usmmc_l_parity_chk);
int iSetSMMC_L_CFG_smmc_l_ecc_chk(unsigned int usmmc_l_ecc_chk);
int iSetSMMC_L_CFG_mem_ini_en(unsigned int umem_ini_en);
int iSetSMMC_L_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSMMC_L_CFG_mem_ret1n(unsigned int umem_ret1n);
int iSetSMMC_L_CFG_sp_ram_tmod_div2(unsigned int usp_ram_tmod_div2);
int iSetSMMC_L_CFG_mem_ret1n_div2(unsigned int umem_ret1n_div2);
int iSetSMMC_L_STAT_mem_ini_done(unsigned int umem_ini_done);
int iSetSMMC_L_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetSMMC_L_INT_VECTOR_enable(unsigned int uenable);
int iSetSMMC_L_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetSMMC_L_INT_int_data(unsigned int uint_data);
int iSetSMMC_L_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMMC_L_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetSMMC_L_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetSMMC_L_MEM_ERR_main_mem_2b_ecc_err(unsigned int umain_mem_2b_ecc_err);
int iSetSMMC_L_MEM_ERR_main_mem_2b_ecc_merr(unsigned int umain_mem_2b_ecc_merr);
int iSetSMMC_L_MEM_ERR_main_mem_1b_ecc_err(unsigned int umain_mem_1b_ecc_err);
int iSetSMMC_L_MEM_ERR_main_mem_1b_ecc_merr(unsigned int umain_mem_1b_ecc_merr);
int iSetSMMC_L_MEM_ERR_MASK_main_mem_2b_ecc_err_mask(unsigned int umain_mem_2b_ecc_err_mask);
int iSetSMMC_L_MEM_ERR_MASK_main_mem_1b_ecc_err_mask(unsigned int umain_mem_1b_ecc_err_mask);
int iSetSMMC_L_MEM_ERR_INFO_mem_err_index(unsigned int umem_err_index);
int iSetSMMC_L_MEM_ERR_INFO_mem_err_info_type(unsigned int umem_err_info_type);
int iSetSMMC_L_INDRECT_CTRL_smmc_l_indir_addr(unsigned int usmmc_l_indir_addr);
int iSetSMMC_L_INDRECT_CTRL_smmc_l_indir_tab(unsigned int usmmc_l_indir_tab);
int iSetSMMC_L_INDRECT_CTRL_smmc_l_indir_stat(unsigned int usmmc_l_indir_stat);
int iSetSMMC_L_INDRECT_CTRL_smmc_l_indir_mode(unsigned int usmmc_l_indir_mode);
int iSetSMMC_L_INDRECT_CTRL_smmc_l_indir_vld(unsigned int usmmc_l_indir_vld);
int iSetSMMC_L_INDRECT_TIMEOUT_smmc_l_indir_timeout(unsigned int usmmc_l_indir_timeout);
int iSetSMMC_L_INDRECT_DATA_smmc_f_indir_data(unsigned int usmmc_f_indir_data);
int iSetSMMC_L_CNT_CFG_cnt0_enable(unsigned int ucnt0_enable);
int iSetSMMC_L_CNT_CFG_cnt1_enable(unsigned int ucnt1_enable);
int iSetSMMC_L_CNT_CFG_cnt2_enable(unsigned int ucnt2_enable);
int iSetSMMC_L_CNT_CFG_cnt3_enable(unsigned int ucnt3_enable);
int iSetSMMC_L_CNT_CFG_cnt0_match_en(unsigned int ucnt0_match_en);
int iSetSMMC_L_CNT_CFG_cnt1_match_en(unsigned int ucnt1_match_en);
int iSetSMMC_L_CNT_CFG_cnt2_match_en(unsigned int ucnt2_match_en);
int iSetSMMC_L_CNT_CFG_cnt3_match_en(unsigned int ucnt3_match_en);
int iSetSMMC_L_CNT_CFG_cnt0_sel(unsigned int ucnt0_sel);
int iSetSMMC_L_CNT_CFG_cnt1_sel(unsigned int ucnt1_sel);
int iSetSMMC_L_CNT_CFG_cnt2_sel(unsigned int ucnt2_sel);
int iSetSMMC_L_CNT_CFG_cnt3_sel(unsigned int ucnt3_sel);
int iSetSMMC_L_CNT_MATCH_BANK_cnt0_match_bank(unsigned int ucnt0_match_bank);
int iSetSMMC_L_CNT_MATCH_BANK_cnt1_match_bank(unsigned int ucnt1_match_bank);
int iSetSMMC_L_CNT_MATCH_BANK_cnt2_match_bank(unsigned int ucnt2_match_bank);
int iSetSMMC_L_CNT_MATCH_BANK_cnt3_match_bank(unsigned int ucnt3_match_bank);
int iSetSMMC_L_CNT_MATCH_INSTANCE_cnt0_match_inst(unsigned int ucnt0_match_inst);
int iSetSMMC_L_CNT_MATCH_INSTANCE_cnt1_match_inst(unsigned int ucnt1_match_inst);
int iSetSMMC_L_CNT_MATCH_INSTANCE_cnt2_match_inst(unsigned int ucnt2_match_inst);
int iSetSMMC_L_CNT_MATCH_INSTANCE_cnt3_match_inst(unsigned int ucnt3_match_inst);
int iSetSMMC_L_CNT0_smmc_l_cnt0(unsigned int usmmc_l_cnt0);
int iSetSMMC_L_CNT1_smmc_l_cnt1(unsigned int usmmc_l_cnt1);
int iSetSMMC_L_CNT2_smmc_l_cnt2(unsigned int usmmc_l_cnt2);
int iSetSMMC_L_CNT3_smmc_l_cnt3(unsigned int usmmc_l_cnt3);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank0(unsigned int ucur_depth_bank0);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank1(unsigned int ucur_depth_bank1);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank2(unsigned int ucur_depth_bank2);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank3(unsigned int ucur_depth_bank3);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank4(unsigned int ucur_depth_bank4);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank5(unsigned int ucur_depth_bank5);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank6(unsigned int ucur_depth_bank6);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP0_cur_depth_bank7(unsigned int ucur_depth_bank7);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank8(unsigned int ucur_depth_bank8);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank9(unsigned int ucur_depth_bank9);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank10(unsigned int ucur_depth_bank10);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank11(unsigned int ucur_depth_bank11);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank12(unsigned int ucur_depth_bank12);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank13(unsigned int ucur_depth_bank13);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank14(unsigned int ucur_depth_bank14);
int iSetSMMC_L_BANK_QUEUE_DEPTH_CTP1_cur_depth_bank15(unsigned int ucur_depth_bank15);
int iSetSMMC_L_ECC_INJ_CFG_smmc_l_1b_ecc_inj_en(unsigned int usmmc_l_1b_ecc_inj_en);
int iSetSMMC_L_ECC_INJ_CFG_smmc_l_2b_ecc_inj_en(unsigned int usmmc_l_2b_ecc_inj_en);
int iSetSMMC_L_PG_CFG_smmc_l_pg_grp1_id(unsigned int usmmc_l_pg_grp1_id);
int iSetSMMC_L_PG_CFG_smmc_l_pg_grp0_id(unsigned int usmmc_l_pg_grp0_id);
int iSetSMMC_L_PG_CFG_smmc_l_pg_grp_num(unsigned int usmmc_l_pg_grp_num);


#endif // SM_C_UNION_DEFINE_H
